summaryrefslogtreecommitdiff
path: root/framework/PradoBase.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/PradoBase.php
parentd15b608ef693c8dbc92c3a5f5ae826ca2812a61f (diff)
fixed #890
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r--framework/PradoBase.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 2fba2ffd..203dc667 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -414,7 +414,7 @@ class PradoBase
echo 'array(' . count($item) . ')';
else if (is_bool($item))
echo $item ? 'true' : 'false';
- else if (is_null($item))
+ else if ($item === null)
echo 'NULL';
else if (is_resource($item))
echo get_resource_type($item);
@@ -571,9 +571,9 @@ class PradoBase
//no translation handler provided
if($app===null || ($config = $app->getTranslationConfiguration())===null)
return strtr($text, $params);
-
- if ($catalogue===null)
- $catalogue=isset($config['catalogue'])?$config['catalogue']:'messages';
+
+ if ($catalogue===null)
+ $catalogue=isset($config['catalogue'])?$config['catalogue']:'messages';
Translation::init($catalogue);