Permalink
Browse files

Remove pointless condition.

  • Loading branch information...
markstory committed Dec 26, 2011
1 parent d8bc13f commit 0750069126b1941060926a63300e6f61f6fec6a0
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Cake/Model/Model.php
View
@@ -1169,9 +1169,7 @@ public function deconstruct($field, $data) {
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])) {

0 comments on commit 0750069

Please sign in to comment.