[pLog-svn] r3155 - plog/trunk/class/gallery/dao

mark at devel.lifetype.net mark at devel.lifetype.net
Wed Mar 29 17:21:43 GMT 2006


Author: mark
Date: 2006-03-29 17:21:42 +0000 (Wed, 29 Mar 2006)
New Revision: 3155

Modified:
   plog/trunk/class/gallery/dao/galleryresources.class.php
Log:
Add a check of '_all_' to make the getUserResources can search all resources in each blog.

Modified: plog/trunk/class/gallery/dao/galleryresources.class.php
===================================================================
--- plog/trunk/class/gallery/dao/galleryresources.class.php	2006-03-29 17:20:33 UTC (rev 3154)
+++ plog/trunk/class/gallery/dao/galleryresources.class.php	2006-03-29 17:21:42 UTC (rev 3155)
@@ -218,7 +218,7 @@
                         $albumId = GALLERY_NO_ALBUM, 
                         $resourceType = GALLERY_RESOURCE_ANY )
         {
-        	if( $ownerId != -1 ) {
+        	if( $ownerId != -1 && $ownerId != '_all_' ) {
         		if( $resource->getOwnerId() != $ownerId ) {
         			return false;
 				}



More information about the pLog-svn mailing list