From: moodler Date: Wed, 19 May 2004 03:52:34 +0000 (+0000) Subject: Fixed the link I just added X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bd76032e1b733e35d119386ce32fa2a1c7f67bc3;p=moodle.git Fixed the link I just added --- diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 7b0c354963..0ba6ebd586 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -190,7 +190,10 @@ $strattemptsexist = get_string("attemptsexist","quiz"); $usercount = count_records("quiz_grades", "quiz", "$modform->instance"); $strusers = get_string("users"); - notify("$strattemptsexist
instance\">$strviewallanswers ($usercount $strusers)"); + if (! $cm = get_coursemodule_from_instance("quiz", $modform->instance, $course->id)) { + error("Course Module ID was incorrect"); + } + notify("$strattemptsexist
id\">$strviewallanswers ($usercount $strusers)"); } ?>