[pLog-svn] r3151 - plog/trunk/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Mar 29 16:46:13 GMT 2006


Author: oscar
Date: 2006-03-29 16:46:12 +0000 (Wed, 29 Mar 2006)
New Revision: 3151

Modified:
   plog/trunk/class/dao/model.class.php
Log:
Mark's change 3149 broke many things and I didn't quite understand it. If all we wanted is to get rid of the warning, probably something like I've done is enough... The php parser is just whining that the variable wasn't defined anywhere, so let's define it with a harmless
value.


Modified: plog/trunk/class/dao/model.class.php
===================================================================
--- plog/trunk/class/dao/model.class.php	2006-03-29 16:33:02 UTC (rev 3150)
+++ plog/trunk/class/dao/model.class.php	2006-03-29 16:46:12 UTC (rev 3151)
@@ -280,8 +280,10 @@
 			// if we previously used the search terms, then we did not cache the data
 			if( $searchTerms == "" )
 				$dbObjects = $this->_cache->getData( $value, $cacheId );
+			else
+				$dbObjects = null;
 				
-        	if( !isset( $dbObjects ) ) {
+        	if( !$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