From de021710e1c0dae732e61ecb42a9ac60440f55ee Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Thu, 19 Mar 2009 21:20:47 +0000 Subject: replace is_null() function calls with native native language constuct --- framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php') diff --git a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php index d7984dc4..5d19a3a3 100644 --- a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php +++ b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php @@ -4,7 +4,7 @@ * * @author Wei Zhuo * @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.Data.SqlMap.Configuration @@ -79,7 +79,7 @@ class TSqlMapCacheModel extends TComponent */ public function initialize($cache=null) { - if(is_null($cache)) + if($cache===null) $this->_cache= Prado::createComponent($this->getImplementationClass()); else $this->_cache=$cache; @@ -127,7 +127,7 @@ class TSqlMapCacheModel extends TComponent //if flush ? $value = $this->_cache->get($key); $this->_requests++; - if(!is_null($value)) + if($value!==null) $this->_hits++; return $value; } @@ -141,7 +141,7 @@ class TSqlMapCacheModel extends TComponent if($key instanceof TSqlMapCacheKey) $key = $key->getHash(); - if(!is_null($value)) + if($value!==null) $this->_cache->set($key, $value); } -- cgit v1.2.3