Fix possible notice.

This commit is contained in:
tjhunt
2007-10-16 20:52:12 +00:00
parent ede4316c01
commit 8af53beeec
+3 -1
View File
@@ -387,7 +387,9 @@
}
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);
}