]> git.mjollnir.org Git - moodle.git/commitdiff
Merged changes from stable
authormoodler <moodler>
Thu, 11 Nov 2004 07:42:04 +0000 (07:42 +0000)
committermoodler <moodler>
Thu, 11 Nov 2004 07:42:04 +0000 (07:42 +0000)
mod/quiz/restorelib.php

index 657be2c1b21f3b21e834f384c59facc0fadd52db..ac2d9b8e56e2b00229b8c8031ad3e430110637ed 100644 (file)
 
         $status = true;
 
+        if (!isset($info['#']['ANSWERS'])) {    // No answers in this question (eg random)
+            return $status;
+        }
+
         //Get the answers array
         $answers = $info['#']['ANSWERS']['0']['#']['ANSWER'];