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

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Nov 27 19:13:43 GMT 2005


Author: oscar
Date: 2005-11-27 19:13:43 +0000 (Sun, 27 Nov 2005)
New Revision: 2655

Modified:
   plog/trunk/class/gallery/dao/galleryresources.class.php
Log:
same thing here


Modified: plog/trunk/class/gallery/dao/galleryresources.class.php
===================================================================
--- plog/trunk/class/gallery/dao/galleryresources.class.php	2005-11-27 19:13:29 UTC (rev 2654)
+++ plog/trunk/class/gallery/dao/galleryresources.class.php	2005-11-27 19:13:43 UTC (rev 2655)
@@ -201,7 +201,7 @@
 			
 			// check if we need to do any paging
 			if( $page > DEFAULT_PAGING_ENABLED && $itemsPerPage > DEFAULT_ITEMS_PER_PAGE )
-				$result = array_slice( $result, $page-1, $itemsPerPage );
+				$result = array_slice( $result,	($page-1) * $amount, $amount );
 
             return $result;
         }




More information about the pLog-svn mailing list