Adding language settings to config.php so that people can control the language output...
[viewsvn.git] / log.php
diff --git a/log.php b/log.php
index eabf7231b2eb69d54b51ec7fced2cc658b91cff5..d7b3ac7100cd725264ae99adf3f2932a1d9ee6a7 100644 (file)
--- a/log.php
+++ b/log.php
@@ -2,7 +2,7 @@
 /*=====================================================================*\
 || ###################################################################
 || # ViewSVN [#]version[#]
-|| # Copyright ©2002-[#]year[#] Iris Studios, Inc.
+|| # Copyright ©2002-[#]year[#] Blue Static
 || #
 || # This program is free software; you can redistribute it and/or modify
 || # it under the terms of the GNU General Public License as published by
@@ -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'];