]> git.mjollnir.org Git - moodle.git/commitdiff
Fix possible notice. Merged from MOODLE_19_STABLE.
authortjhunt <tjhunt>
Tue, 16 Oct 2007 20:52:28 +0000 (20:52 +0000)
committertjhunt <tjhunt>
Tue, 16 Oct 2007 20:52:28 +0000 (20:52 +0000)
mod/quiz/attempt.php

index 0e14375de448b51ea4be5c5d28a7ca1519c83b4d..4a0c21794f5839aed29a84118ccb4ff72545dac3 100644 (file)
     }
 
     if ($finishattempt) {
-        unset($SESSION->passwordcheckedquizzes[$quiz->id]);
+        if (!empty($SESSION->passwordcheckedquizzes[$quiz->id])) {
+            unset($SESSION->passwordcheckedquizzes[$quiz->id]);
+        }
         redirect($CFG->wwwroot . '/mod/quiz/review.php?attempt='.$attempt->id, 0);
     }