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

Mark Wu markplace at gmail.com
Wed Mar 29 17:12:03 GMT 2006


Hi Oscar:

I keep this one but remove another one, because it run well in PHP5.  What
is your php version? 4 or 5?

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> oscar at devel.lifetype.net
> Sent: Thursday, March 30, 2006 12:46 AM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r3151 - plog/trunk/class/dao
> 
> 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 = "";
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list