MDL-28103 one more problem.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 1 Jul 2011 20:17:06 +0000 (21:17 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 1 Jul 2011 20:17:06 +0000 (21:17 +0100)
question/engine/upgrade/behaviourconverters.php

index 9fffa19..a502b8e 100644 (file)
@@ -320,7 +320,7 @@ abstract class question_behaviour_attempt_updater {
         }
 
         $step->fraction = null;
-        $step->timecreated = $state->timestamp;
+        $step->timecreated = $state->timestamp ? $state->timestamp : time();
         $step->userid = $this->attempt->userid;
 
         $summary = $this->qtypeupdater->response_summary($state);