Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv9923
Modified Files:
serendipity_functions.inc.php
Log Message:
When there are no entries in the blog, the archive overview fails with a
division by zero and then prints empty navigation items until 1970.
Thanks to Till Gerken
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -d -r1.159 -r1.160
--- serendipity_functions.inc.php 1 Oct 2003 11:38:22 -0000 1.159
+++ serendipity_functions.inc.php 1 Oct 2003 15:50:51 -0000 1.160
@@ -2343,6 +2343,10 @@
$currYear--;
}
+ if (!$max) {
+ return;
+ }
+
$barwidth = 40;
$fac = $barwidth/$max;
?>
|