diff options
author | godzilla80@gmx.net <> | 2009-03-19 21:20:47 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-03-19 21:20:47 +0000 |
commit | de021710e1c0dae732e61ecb42a9ac60440f55ee (patch) | |
tree | dffb0f86c8db116759087d2795470d1e2cda9c5f /framework/Data/TDataSourceConfig.php | |
parent | 798783263a8638675c0df2d1274fb1947ef79d1b (diff) |
replace is_null() function calls with native native language constuct
Diffstat (limited to 'framework/Data/TDataSourceConfig.php')
-rw-r--r-- | framework/Data/TDataSourceConfig.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Data/TDataSourceConfig.php b/framework/Data/TDataSourceConfig.php index 9a81ff8c..53a5ef22 100644 --- a/framework/Data/TDataSourceConfig.php +++ b/framework/Data/TDataSourceConfig.php @@ -1,10 +1,10 @@ -<?php +<?php
/**
* TDataSourceConfig class file.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @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
@@ -131,7 +131,7 @@ class TDataSourceConfig extends TModule */
public function setConnectionClass($value)
{
- if(!is_null($this->_conn))
+ if($this->_conn!==null)
throw new TConfigurationException('datasource_dbconnection_exists', $value);
$this->_connClass=$value;
}
@@ -153,4 +153,4 @@ class TDataSourceConfig extends TModule throw new TConfigurationException('datasource_dbconnection_invalid',$id);
}
}
- +
|