]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed the link I just added
authormoodler <moodler>
Wed, 19 May 2004 03:52:34 +0000 (03:52 +0000)
committermoodler <moodler>
Wed, 19 May 2004 03:52:34 +0000 (03:52 +0000)
mod/quiz/edit.php

index 7b0c3549636e21b5925ffb0f57e8c309ca1e95cc..0ba6ebd5868b213d17a61377fb0eccb18973657a 100644 (file)
             $strattemptsexist  = get_string("attemptsexist","quiz");
             $usercount = count_records("quiz_grades", "quiz", "$modform->instance");
             $strusers  = get_string("users");
-            notify("$strattemptsexist<br /><a href=\"report.php?id=$modform->instance\">$strviewallanswers ($usercount $strusers)</a>");
+            if (! $cm = get_coursemodule_from_instance("quiz", $modform->instance, $course->id)) {
+                error("Course Module ID was incorrect");
+            }
+            notify("$strattemptsexist<br /><a href=\"report.php?id=$cm->id\">$strviewallanswers ($usercount $strusers)</a>");
         }
 
         ?>