From bd76032e1b733e35d119386ce32fa2a1c7f67bc3 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 19 May 2004 03:52:34 +0000 Subject: [PATCH] Fixed the link I just added --- mod/quiz/edit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)"); } ?> -- 2.39.5