mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove pointless condition.
This commit is contained in:
parent
d8bc13f996
commit
0750069126
1 changed files with 1 additions and 3 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Reference in a new issue