]> git.mjollnir.org Git - moodle.git/commitdiff
merged fixed warning druing restore
authortoyomoyo <toyomoyo>
Thu, 12 Oct 2006 06:13:42 +0000 (06:13 +0000)
committertoyomoyo <toyomoyo>
Thu, 12 Oct 2006 06:13:42 +0000 (06:13 +0000)
mod/quiz/restorelib.php

index d0d973c54f420f6c1a39dac031907430f6878bab..447f49bcbe1a70d199f4e2a9cdc1a1358f3695fc 100644 (file)
@@ -99,8 +99,8 @@
             $quiz->password = backup_todb($info['MOD']['#']['PASSWORD']['0']['#']);
             $quiz->subnet = backup_todb($info['MOD']['#']['SUBNET']['0']['#']);
             $quiz->popup = backup_todb($info['MOD']['#']['POPUP']['0']['#']);
-            $quiz->delay1 = backup_todb($info['MOD']['#']['DELAY1']['0']['#']);
-            $quiz->delay2 = backup_todb($info['MOD']['#']['DELAY2']['0']['#']);
+            $quiz->delay1 = isset($info['MOD']['#']['DELAY1']['0']['#'])?backup_todb($info['MOD']['#']['DELAY1']['0']['#']):'';
+            $quiz->delay2 = isset($info['MOD']['#']['DELAY2']['0']['#'])?backup_todb($info['MOD']['#']['DELAY2']['0']['#']):'';
             //We have to recode the questions field (a list of questions id and pagebreaks)
             $quiz->questions = quiz_recode_layout($quiz->questions, $restore);