[pLog-svn] r3149 - plog/trunk/class/dao
Jon Daley
plogworld at jon.limedaley.com
Wed Mar 29 12:25:33 GMT 2006
I am not sure what this means. Do you mean
if($asd) needs to be changed to if(isset($asd))
but if(!$asd) is okay?
On Wed, 29 Mar 2006, mark at devel.lifetype.net wrote:
> Author: mark
> Date: 2006-03-29 12:02:45 +0000 (Wed, 29 Mar 2006)
> New Revision: 3149
>
> Modified:
> plog/trunk/class/dao/model.class.php
> Log:
> revert some code of the last modification. Seems only if($dbobjects) need to modify, and if($dbobject) doesn't need any modification.
>
> Modified: plog/trunk/class/dao/model.class.php
> ===================================================================
> --- plog/trunk/class/dao/model.class.php 2006-03-29 11:40:19 UTC (rev 3148)
> +++ plog/trunk/class/dao/model.class.php 2006-03-29 12:02:45 UTC (rev 3149)
> @@ -170,7 +170,7 @@
> {
> $dbObject = $this->_cache->getData( $value, $cacheId );
>
> - if( !isset( $dbObject ) ) {
> + if( !$dbObject ) {
> $this->log->debug("get: $field:$value - cache = $cacheId" );
> $query = "SELECT * FROM ".$this->table." WHERE {$field} = '".Db::qstr( $value )."'";
More information about the pLog-svn
mailing list