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/TResultMap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data/SqlMap/Configuration/TResultMap.php') diff --git a/framework/Data/SqlMap/Configuration/TResultMap.php b/framework/Data/SqlMap/Configuration/TResultMap.php index d59d9522..e85dc1aa 100644 --- a/framework/Data/SqlMap/Configuration/TResultMap.php +++ b/framework/Data/SqlMap/Configuration/TResultMap.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 @@ -162,7 +162,7 @@ class TResultMap extends TComponent $handler = $registry->getTypeHandler($this->getClass()); try { - if(!is_null($handler)) + if($handler!==null) return $handler->createNewInstance(); else return $registry->createInstanceOf($this->getClass()); @@ -184,12 +184,12 @@ class TResultMap extends TComponent public function resolveSubMap($registry,$row) { $subMap = $this; - if(!is_null($disc = $this->getDiscriminator())) + if(($disc = $this->getDiscriminator())!==null) { $value = $disc->getMapping()->getPropertyValue($registry,$row); $subMap = $disc->getSubMap((string)$value); - if(is_null($subMap)) + if($subMap===null) $subMap = $this; else if($subMap !== $this) $subMap = $subMap->resolveSubMap($registry,$row); -- cgit v1.2.3