From 411fbb72f5a4c72e43af08ee403c79c73eb4b53f Mon Sep 17 00:00:00 2001 From: knut <> Date: Wed, 30 Jul 2008 01:43:12 +0000 Subject: fixed #890 --- framework/PradoBase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/PradoBase.php') 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); -- cgit v1.2.3