[pLog-svn] r5520 - plog/branches/lifetype-1.2/class/gallery/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sun Jun 10 23:56:05 EDT 2007
Author: jondaley
Date: 2007-06-10 23:56:05 -0400 (Sun, 10 Jun 2007)
New Revision: 5520
Modified:
plog/branches/lifetype-1.2/class/gallery/dao/galleryresources.class.php
Log:
missing space in query - I guess no one has ever used an owner_id of -1 before. lucky me.
Modified: plog/branches/lifetype-1.2/class/gallery/dao/galleryresources.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/gallery/dao/galleryresources.class.php 2007-06-10 21:09:47 UTC (rev 5519)
+++ plog/branches/lifetype-1.2/class/gallery/dao/galleryresources.class.php 2007-06-11 03:56:05 UTC (rev 5520)
@@ -266,7 +266,7 @@
if( $ownerId != -1 )
$cond = "owner_id = '".Db::qstr( $ownerId )."'";
else
- $cond = "owner_id = owner_id";
+ $cond = "owner_id = owner_id ";
if( $albumId > GALLERY_NO_ALBUM )
$cond .= "AND album_id = '".Db::qstr($albumId)."'";
@@ -277,7 +277,7 @@
$cond .= " AND (".$searchParams.")";
}
- // return the number of items
+ // return the number of items
return( $this->getNumItems( $table, $cond ));
}
More information about the pLog-svn
mailing list