https://src.bluestatic.org
/
viewsvn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc582fa
)
If a log wasn't more than 20 items nothing would show up
author
Robert Sesek <rsesek@bluestatic.org>
Sun, 22 Apr 2007 05:52:30 +0000
(
05:52
+0000)
committer
Robert Sesek <rsesek@bluestatic.org>
Sun, 22 Apr 2007 05:52:30 +0000
(
05:52
+0000)
log.php
patch
|
blob
|
history
diff --git
a/log.php
b/log.php
index 2b5546607e8d53a3787e6474ac1981137c844066..d7b3ac7100cd725264ae99adf3f2932a1d9ee6a7 100644
(file)
--- 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'];