MDL-21432 backup - keep any empty() value to offset unmodified

This commit is contained in:
Eloy Lafuente
2010-09-16 10:07:32 +00:00
parent 0df2981f32
commit fc92674d7a
@@ -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;
}