From 411fbb72f5a4c72e43af08ee403c79c73eb4b53f Mon Sep 17 00:00:00 2001 From: knut <> Date: Wed, 30 Jul 2008 01:43:12 +0000 Subject: fixed #890 --- framework/Web/UI/TClientScriptManager.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/TClientScriptManager.php') diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index 6d4775bf..3a51bf76 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -115,7 +115,7 @@ class TClientScriptManager extends TApplicationComponent { if(!isset($this->_registeredPradoScripts[$name])) { - if(is_null(self::$_pradoScripts)) + if(self::$_pradoScripts === null) { $packageFile = Prado::getFrameworkPath().DIRECTORY_SEPARATOR.self::SCRIPT_PATH.'/packages.php'; list($packages,$deps)= include($packageFile); @@ -207,8 +207,9 @@ class TClientScriptManager extends TApplicationComponent $assets = Prado::getApplication()->getAssetManager(); if(strpos($base, $assets->getBaseUrl())===false) { - if(!is_null($dir = Prado::getPathOfNameSpace($base))) + if(($dir = Prado::getPathOfNameSpace($base)) !== null) { $base = $dir; + } return array($assets->getPublishedPath($base), $assets->publishFilePath($base)); } else @@ -259,7 +260,9 @@ class TClientScriptManager extends TApplicationComponent */ public function registerPostBackControl($class,$options) { - if(is_null($class)) return; + if($class === null) { + return; + } if(!isset($options['FormID']) && ($form=$this->_page->getForm())!==null) $options['FormID']=$form->getClientID(); $optionString=TJavaScript::encode($options); -- cgit v1.2.3