From 5f8c3e1f1aea8394274eb9c2b59039fff04c73f5 Mon Sep 17 00:00:00 2001
From: moodler <moodler>
Date: Sat, 14 Aug 2004 12:42:54 +0000
Subject: [PATCH] Fixed some notices

---
 mod/chat/mod.html | 6 ++++++
 mod/quiz/lib.php  | 5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

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;
+    }
 ?>
 <form name="form" method="post" action="mod.php">
 <table cellpadding=5>
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 "</td></tr></table>";
-- 
2.39.5