array/object initialization

This commit is contained in:
michaelpenne
2005-02-09 22:36:24 +00:00
parent 078ab023be
commit f7ffb898fa
5 changed files with 46 additions and 22 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class quiz_default_format {
$count++;
echo "<hr><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
unset($newpage);
$newpage = new stdClass;
$newpage->lessonid = $lesson->id;
$newpage->qtype = $question->qtype;
switch ($question->qtype) {