From fc92674d7a8577704a9cbfed7535f08fef6dc59f Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Thu, 16 Sep 2010 10:07:32 +0000 Subject: [PATCH] MDL-21432 backup - keep any empty() value to offset unmodified --- backup/util/plan/restore_structure_step.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/util/plan/restore_structure_step.class.php b/backup/util/plan/restore_structure_step.class.php index c1b51ad45d5..26efb6a8305 100644 --- a/backup/util/plan/restore_structure_step.class.php +++ b/backup/util/plan/restore_structure_step.class.php @@ -201,8 +201,8 @@ abstract class restore_structure_step extends restore_step { */ public function apply_date_offset($value) { - // 0 doesn't offset - if ($value == 0) { + // empties don't offset - zeros (int and string), false and nulls return original value + if (empty($value)) { return $value; }