[geeklog-cvs] Geeklog-1.x/public_html index.php,1.94,1.95

Dirk Haun dhaun at qs1489.pair.com
Sun Jul 29 03:50:09 EDT 2007


Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv42743/public_html

Modified Files:
	index.php 
Log Message:
Avoid division by zero error when $_CONF['limitnews'] == 0 (reported by Sam Stone)


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/index.php,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** index.php	29 Apr 2007 14:10:07 -0000	1.94
--- index.php	29 Jul 2007 07:50:07 -0000	1.95
***************
*** 191,194 ****
--- 191,197 ----
  
  $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