From 411fbb72f5a4c72e43af08ee403c79c73eb4b53f Mon Sep 17 00:00:00 2001 From: knut <> Date: Wed, 30 Jul 2008 01:43:12 +0000 Subject: fixed #890 --- framework/I18N/core/DateFormat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/I18N/core/DateFormat.php') diff --git a/framework/I18N/core/DateFormat.php b/framework/I18N/core/DateFormat.php index 8dd3fdca..178da0bb 100644 --- a/framework/I18N/core/DateFormat.php +++ b/framework/I18N/core/DateFormat.php @@ -91,7 +91,7 @@ class DateFormat */ function __construct($formatInfo=null) { - if(is_null($formatInfo)) + if($formatInfo === null) $this->formatInfo = DateTimeFormatInfo::getInvariantInfo(); else if($formatInfo instanceof CultureInfo) $this->formatInfo = $formatInfo->DateTimeFormat; @@ -115,7 +115,7 @@ class DateFormat else if(is_string($time)) $time = @strtotime($time); - if(is_null($pattern)) + if($pattern === null) $pattern = 'F'; $s = Prado::createComponent('System.Util.TDateTimeStamp'); -- cgit v1.2.3