mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixed some notices
This commit is contained in:
parent
a950790dfd
commit
5f8c3e1f1a
2 changed files with 9 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue