Forgot to include complete patch in last commit :(

Note: It's not good to commit while watching tv
This commit is contained in:
Jose Lorenzo Rodriguez 2012-06-09 15:00:47 -04:30
parent d13deb7da2
commit 2a90baae0c

View file

@ -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);
}