]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed some notices
authormoodler <moodler>
Sat, 14 Aug 2004 12:42:54 +0000 (12:42 +0000)
committermoodler <moodler>
Sat, 14 Aug 2004 12:42:54 +0000 (12:42 +0000)
mod/chat/mod.html
mod/quiz/lib.php

index 9c93912a87b428101b8b099a5caaced95f578eec..d91e1ed8b75af5b430448a8ed416a64653bbab0f 100644 (file)
     if (!isset($form->studentlogs)) {
         $form->studentlogs = 0;
     }
+    if (!isset($form->chattime)) {
+        $form->chattime = 0;
+    }
+    if (!isset($form->schedule)) {
+        $form->schedule = 0;
+    }
 ?>
 <form name="form" method="post" action="mod.php">
 <table cellpadding=5>
index 7fe0de0c343ee7a002f1e74b0a14027eabff9cfb..8a276c4a10f50b898609c67b4c80bd6771a635fb 100644 (file)
@@ -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 "</td></tr></table>";