From d13deb7da237120ff6b94394506f7c110ada1215 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 9 Jun 2012 14:52:03 -0430 Subject: [PATCH] Fixing param usage introduced in previous commit --- lib/Cake/Utility/CakeTime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Utility/CakeTime.php b/lib/Cake/Utility/CakeTime.php index 3a914adc5..9b8db8b3d 100644 --- a/lib/Cake/Utility/CakeTime.php +++ b/lib/Cake/Utility/CakeTime.php @@ -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';