Fixing param usage introduced in previous commit

This commit is contained in:
Jose Lorenzo Rodriguez 2012-06-09 14:52:03 -04:30
parent a2c2902dd6
commit d13deb7da2

View file

@ -970,8 +970,8 @@ class CakeTime {
*/
public static function i18nFormat($date, $format = null, $default = false, $timezone = null) {
$date = self::fromString($date, $timezone);
if ($date === false && $invalid !== false) {
return $invalid;
if ($date === false && $default !== false) {
return $default;
}
if (empty($format)) {
$format = '%x';