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/TParameterMap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data/SqlMap/Configuration/TParameterMap.php') diff --git a/framework/Data/SqlMap/Configuration/TParameterMap.php b/framework/Data/SqlMap/Configuration/TParameterMap.php index f4fbbe1c..4b5ee144 100644 --- a/framework/Data/SqlMap/Configuration/TParameterMap.php +++ b/framework/Data/SqlMap/Configuration/TParameterMap.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 @@ -140,12 +140,12 @@ class TParameterMap extends TComponent { $value = $this->getObjectValue($parameterValue,$property); - if(!is_null($handler=$this->createTypeHandler($property, $registry))) + if(($handler=$this->createTypeHandler($property, $registry))!==null) $value = $handler->getParameter($value); $value = $this->nullifyDefaultValue($property,$value); - if(!is_null($type = $property->getType())) + if(($type = $property->getType())!==null) $value = $registry->convertToType($type, $value); return $value; @@ -197,7 +197,7 @@ class TParameterMap extends TComponent */ protected function nullifyDefaultValue($property,$value) { - if(!is_null($nullValue = $property->getNullValue())) + if(($nullValue = $property->getNullValue())!==null) { if($nullValue === $value) $value = null; -- cgit v1.2.3