[pLog-svn] r3148 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Wed Mar 29 11:40:20 GMT 2006
Author: mark
Date: 2006-03-29 11:40:19 +0000 (Wed, 29 Mar 2006)
New Revision: 3148
Modified:
plog/trunk/class/dao/model.class.php
Log:
Change if(!$dbobject) to if(!isset($dbobject)) to avoid php notice.
Modified: plog/trunk/class/dao/model.class.php
===================================================================
--- plog/trunk/class/dao/model.class.php 2006-03-29 10:50:58 UTC (rev 3147)
+++ plog/trunk/class/dao/model.class.php 2006-03-29 11:40:19 UTC (rev 3148)
@@ -170,7 +170,7 @@
{
$dbObject = $this->_cache->getData( $value, $cacheId );
- if( !$dbObject ) {
+ if( !isset( $dbObject ) ) {
$this->log->debug("get: $field:$value - cache = $cacheId" );
$query = "SELECT * FROM ".$this->table." WHERE {$field} = '".Db::qstr( $value )."'";
@@ -281,7 +281,7 @@
if( $searchTerms == "" )
$dbObjects = $this->_cache->getData( $value, $cacheId );
- if( !$dbObjects ) {
+ if( !isset( $dbObjects ) ) {
$this->log->debug("getMany: $key:$value - cache = $cacheId -- cache miss!");
$query = "SELECT * FROM ".$this->table;
$where = "";
More information about the pLog-svn
mailing list