[geeklog-cvs] Geeklog-1.x/public_html index.php,1.89,1.89.2.1
Dirk Haun
dhaun at qs1489.pair.com
Sun Jul 29 03:52:45 EDT 2007
Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv42839/public_html
Modified Files:
Tag: geeklog_1_4_1_1
index.php
Log Message:
Avoid division by zero error when $_CONF['limitnews'] == 0, reported by Sam Stone (ported over from the trunk)
Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/index.php,v
retrieving revision 1.89
retrieving revision 1.89.2.1
diff -C2 -d -r1.89 -r1.89.2.1
*** index.php 10 Dec 2006 12:08:39 -0000 1.89
--- index.php 29 Jul 2007 07:52:43 -0000 1.89.2.1
***************
*** 116,119 ****
--- 116,122 ----
$limit = $maxstories;
+ if ($limit < 1) {
+ $limit = 1;
+ }
// Geeklog now allows for articles to be published in the future. Because of
More information about the geeklog-cvs
mailing list