From d2be9cdaaba767a7b021db458bfeca2d7b50a00f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Apr 2007 05:52:30 +0000 Subject: [PATCH] If a log wasn't more than 20 items nothing would show up --- log.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/log.php b/log.php index 2b55466..d7b3ac7 100644 --- a/log.php +++ b/log.php @@ -65,8 +65,11 @@ BSXml::UnifyNode($logs['log']['logentry']); $paginate->setTotal(sizeof($logs['log']['logentry'])); $paginate->splitPages(); -for ($i = $paginate->fetchLimit() - $paginate->getPerPage(); $i < $paginate->fetchLimit($paginate->getPage()); $i++) +$i = $paginate->fetchLimit() - $paginate->getPerPage(); +$i = ($i <= 0 ? 0: $i); +for (; $i < $paginate->fetchLimit($paginate->getPage()); $i++) { + $log = $logs['log']['logentry'][$i]; $log['author'] = $log['author']['value']; -- 2.43.5