diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 1fb2f7c57..2b2a55948 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -1169,9 +1169,7 @@ class Model extends Object { foreach ($timeFields as $key => $val) { if (!isset($data[$val]) || $data[$val] === '0' || $data[$val] === '00') { $data[$val] = '00'; - } elseif ($data[$val] === '') { - $data[$val] = ''; - } else { + } elseif ($data[$val] !== '') { $data[$val] = sprintf('%02d', $data[$val]); } if (!empty($data[$val])) {