[pLog-svn] r2650 - plog/trunk/class/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Nov 27 18:34:01 GMT 2005
Author: oscar
Date: 2005-11-27 18:34:00 +0000 (Sun, 27 Nov 2005)
New Revision: 2650
Modified:
plog/trunk/class/dao/articles.class.php
Log:
fixed a bug where the newest post wouldn't be included in the main page
Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php 2005-11-27 18:14:56 UTC (rev 2649)
+++ plog/trunk/class/dao/articles.class.php 2005-11-27 18:34:00 UTC (rev 2650)
@@ -360,6 +360,7 @@
$result = Array();
$total = 0;
foreach( $articles as $article ) {
+ print($article->getTopic());
if( $this->check( $article, $date, $categoryId, $status, $userId, $maxDate, $searchTerms )) {
$result[] = $article;
$total++;
@@ -368,7 +369,7 @@
// do the slicing only if necessary
if( $page > -1 && $amount > -1 )
- $result = array_slice( $result, $page, $amount );
+ $result = array_slice( $result, $page-1, $amount );
return( $result );
}
More information about the pLog-svn
mailing list