From de021710e1c0dae732e61ecb42a9ac60440f55ee Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Thu, 19 Mar 2009 21:20:47 +0000 Subject: replace is_null() function calls with native native language constuct --- framework/I18N/TDateFormat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/I18N/TDateFormat.php') diff --git a/framework/I18N/TDateFormat.php b/framework/I18N/TDateFormat.php index 914131bd..2a4ef8bc 100644 --- a/framework/I18N/TDateFormat.php +++ b/framework/I18N/TDateFormat.php @@ -119,7 +119,7 @@ class TDateFormat extends TI18NControl implements IDataRenderer //no presets found, use the string as the pattern //and let the DateFormat handle it. - if(is_null($pattern)) + if($pattern===null) $pattern = $string; if (!is_array($pattern) && strlen($pattern) == 0) $pattern = null; @@ -226,7 +226,7 @@ class TDateFormat extends TI18NControl implements IDataRenderer $app = $this->getApplication()->getGlobalization(); //initialized the default class wide formatter - if(is_null(self::$formatter)) + if(self::$formatter===null) self::$formatter = new DateFormat($app->getCulture()); $culture = $this->getCulture(); -- cgit v1.2.3