summaryrefslogtreecommitdiff
path: root/framework/I18N/core/NumberFormat.php
diff options
context:
space:
mode:
authorknut <>2008-07-30 01:43:12 +0000
committerknut <>2008-07-30 01:43:12 +0000
commit411fbb72f5a4c72e43af08ee403c79c73eb4b53f (patch)
tree3915b0d98ca3c0608b56ad280cb08b8837a43dea /framework/I18N/core/NumberFormat.php
parentd15b608ef693c8dbc92c3a5f5ae826ca2812a61f (diff)
fixed #890
Diffstat (limited to 'framework/I18N/core/NumberFormat.php')
-rw-r--r--framework/I18N/core/NumberFormat.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/I18N/core/NumberFormat.php b/framework/I18N/core/NumberFormat.php
index 24869b3f..bac57fb5 100644
--- a/framework/I18N/core/NumberFormat.php
+++ b/framework/I18N/core/NumberFormat.php
@@ -90,7 +90,7 @@ class NumberFormat
*/
function __construct($formatInfo=null)
{
- if(is_null($formatInfo))
+ if($formatInfo === null)
$this->formatInfo = NumberFormatInfo::getInvariantInfo();
else if($formatInfo instanceof CultureInfo)
$this->formatInfo = $formatInfo->NumberFormat;
@@ -143,8 +143,9 @@ class NumberFormat
//replace currency sign
$symbol = @$this->formatInfo->getCurrencySymbol($currency);
- if(is_null($symbol))
+ if($symbol === null) {
$symbol = $currency;
+ }
$result = str_replace('ยค',$symbol, $result);