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/TResultProperty.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data/SqlMap/Configuration/TResultProperty.php') diff --git a/framework/Data/SqlMap/Configuration/TResultProperty.php b/framework/Data/SqlMap/Configuration/TResultProperty.php index 8e20d5e4..7316ef0b 100644 --- a/framework/Data/SqlMap/Configuration/TResultProperty.php +++ b/framework/Data/SqlMap/Configuration/TResultProperty.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 @@ -242,7 +242,7 @@ class TResultProperty extends TComponent $value = $this->getTypedValue($registry,$row[$index]); else if(isset($row[$name])) $value = $this->getTypedValue($registry,$row[$name]); - if(is_null($value) && !is_null($this->getNullValue())) + if(($value===null) && ($this->getNullValue()!==null)) $value = $this->getTypedValue($registry,$this->getNullValue()); return $value; } @@ -302,7 +302,7 @@ class TResultProperty extends TComponent */ public function instanceOfListType($target) { - if(is_null($this->getType())) + if($this->getType()===null) return TPropertyAccess::get($target,$this->getProperty()) instanceof TList; return $this->getPropertyValueType() == self::LIST_TYPE; } @@ -315,7 +315,7 @@ class TResultProperty extends TComponent */ public function instanceOfArrayType($target) { - if(is_null($this->getType())) + if($this->getType()===null) { $prop = TPropertyAccess::get($target,$this->getProperty()); if(is_object($prop)) -- cgit v1.2.3