From: toyomoyo Date: Thu, 12 Oct 2006 06:13:42 +0000 (+0000) Subject: merged fixed warning druing restore X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=18d751fc38a452eb43533a96b3d5c38c32c51413;p=moodle.git merged fixed warning druing restore --- diff --git a/mod/quiz/restorelib.php b/mod/quiz/restorelib.php index d0d973c54f..447f49bcbe 100644 --- a/mod/quiz/restorelib.php +++ b/mod/quiz/restorelib.php @@ -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);