From: moodler Date: Sat, 14 Aug 2004 12:42:54 +0000 (+0000) Subject: Fixed some notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5f8c3e1f1aea8394274eb9c2b59039fff04c73f5;p=moodle.git Fixed some notices --- diff --git a/mod/chat/mod.html b/mod/chat/mod.html index 9c93912a87..d91e1ed8b7 100644 --- a/mod/chat/mod.html +++ b/mod/chat/mod.html @@ -11,6 +11,12 @@ if (!isset($form->studentlogs)) { $form->studentlogs = 0; } + if (!isset($form->chattime)) { + $form->chattime = 0; + } + if (!isset($form->schedule)) { + $form->schedule = 0; + } ?>
diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 7fe0de0c34..8a276c4a10 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -251,8 +251,9 @@ class quiz_default_questiontype { isset($question->recentlyadded) ? $question->recentlyadded : false); $this->print_question_formulation_and_controls( - $question, $quiz, $readonly, $resultdetails->answers, - $resultdetails->correctanswers, + $question, $quiz, $readonly, + empty($resultdetails) ? false : $resultdetails->answers, + empty($resultdetails) ? false : $resultdetails->correctanswers, quiz_qtype_nameprefix($question)); echo "
";