diff options
author | godzilla80@gmx.net <> | 2009-03-19 21:20:47 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-03-19 21:20:47 +0000 |
commit | de021710e1c0dae732e61ecb42a9ac60440f55ee (patch) | |
tree | dffb0f86c8db116759087d2795470d1e2cda9c5f /framework/I18N/TI18NControl.php | |
parent | 798783263a8638675c0df2d1274fb1947ef79d1b (diff) |
replace is_null() function calls with native native language constuct
Diffstat (limited to 'framework/I18N/TI18NControl.php')
-rw-r--r-- | framework/I18N/TI18NControl.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/I18N/TI18NControl.php b/framework/I18N/TI18NControl.php index ac3246fe..c04477e0 100644 --- a/framework/I18N/TI18NControl.php +++ b/framework/I18N/TI18NControl.php @@ -4,7 +4,7 @@ *
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @link http://www.pradosoft.com/
- * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.I18N
@@ -49,11 +49,11 @@ class TI18NControl extends TControl //fall back to globalization charset
if(empty($charset))
- $charset = is_null($app) ? '' : $app->getCharset();
+ $charset = ($app===null) ? '' : $app->getCharset();
//fall back to default charset
if(empty($charset))
- $charset = (is_null($app)) ? 'UTF-8' : $app->getDefaultCharset();
+ $charset = ($app===null) ? 'UTF-8' : $app->getDefaultCharset();
return $charset;
}
|