mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Forgot to include complete patch in last commit :(
Note: It's not good to commit while watching tv
This commit is contained in:
parent
d13deb7da2
commit
2a90baae0c
1 changed files with 3 additions and 3 deletions
|
@ -949,10 +949,10 @@ class CakeTime {
|
|||
$_time = is_numeric($time) ? false : self::fromString($date, $timezone);
|
||||
|
||||
if (is_numeric($_time) && $time === false) {
|
||||
return self::i18nFormat($_time, $format, $invalid, $timezone);
|
||||
return self::i18nFormat($_time, $format, $default, $timezone);
|
||||
}
|
||||
if ($time === false && $invalid !== false) {
|
||||
return $invalid;
|
||||
if ($time === false && $default !== false) {
|
||||
return $default;
|
||||
}
|
||||
return date($date, $time);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue