diff options
author | knut <> | 2008-07-30 01:43:12 +0000 |
---|---|---|
committer | knut <> | 2008-07-30 01:43:12 +0000 |
commit | 411fbb72f5a4c72e43af08ee403c79c73eb4b53f (patch) | |
tree | 3915b0d98ca3c0608b56ad280cb08b8837a43dea /framework/Data/ActiveRecord | |
parent | d15b608ef693c8dbc92c3a5f5ae826ca2812a61f (diff) |
fixed #890
Diffstat (limited to 'framework/Data/ActiveRecord')
-rw-r--r-- | framework/Data/ActiveRecord/TActiveRecordManager.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecordManager.php b/framework/Data/ActiveRecord/TActiveRecordManager.php index 3790773d..a2f9a44f 100644 --- a/framework/Data/ActiveRecord/TActiveRecordManager.php +++ b/framework/Data/ActiveRecord/TActiveRecordManager.php @@ -1,4 +1,4 @@ -<?php +<?php
/**
* TActiveRecordManager class file.
*
@@ -93,8 +93,9 @@ class TActiveRecordManager extends TComponent */
public function getRecordGateway()
{
- if(is_null($this->_gateway))
+ if($this->_gateway === null) {
$this->_gateway = $this->createRecordGateway();
+ }
return $this->_gateway;
}
@@ -107,5 +108,5 @@ class TActiveRecordManager extends TComponent }
}
- +
?>
\ No newline at end of file |