Fixed some notices

This commit is contained in:
moodler 2004-08-14 12:42:54 +00:00
parent a950790dfd
commit 5f8c3e1f1a
2 changed files with 9 additions and 2 deletions

View file

@ -11,6 +11,12 @@
if (!isset($form->studentlogs)) { if (!isset($form->studentlogs)) {
$form->studentlogs = 0; $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"> <form name="form" method="post" action="mod.php">
<table cellpadding=5> <table cellpadding=5>

View file

@ -251,8 +251,9 @@ class quiz_default_questiontype {
isset($question->recentlyadded) ? $question->recentlyadded : false); isset($question->recentlyadded) ? $question->recentlyadded : false);
$this->print_question_formulation_and_controls( $this->print_question_formulation_and_controls(
$question, $quiz, $readonly, $resultdetails->answers, $question, $quiz, $readonly,
$resultdetails->correctanswers, empty($resultdetails) ? false : $resultdetails->answers,
empty($resultdetails) ? false : $resultdetails->correctanswers,
quiz_qtype_nameprefix($question)); quiz_qtype_nameprefix($question));
echo "</td></tr></table>"; echo "</td></tr></table>";