Browse files

Merge branch 'MDL-37378_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
2 parents a07dccc + df0c2e5 commit e5f6a755e785fde80082f106b0d2ef626f717e4e Sam Hemelryk committed Jan 15, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/quiz/backup/moodle2/restore_quiz_stepslib.php
View
6 mod/quiz/backup/moodle2/restore_quiz_stepslib.php
@@ -306,7 +306,11 @@ protected function process_quiz_attempt($data) {
$data->timestart = $this->apply_date_offset($data->timestart);
$data->timefinish = $this->apply_date_offset($data->timefinish);
$data->timemodified = $this->apply_date_offset($data->timemodified);
- $data->timecheckstate = $this->apply_date_offset($data->timecheckstate);
+ if (!empty($data->timecheckstate)) {
+ $data->timecheckstate = $this->apply_date_offset($data->timecheckstate);
+ } else {
+ $data->timecheckstate = 0;
+ }
// Deals with up-grading pre-2.3 back-ups to 2.3+.
if (!isset($data->state)) {

0 comments on commit e5f6a75

Please sign in to comment.