try to prevent division by zero

This commit is contained in:
Garvin Hicking 2008-12-09 10:05:33 +00:00
parent ccdbcfce96
commit 61be3385e3

View File

@ -1500,7 +1500,7 @@ function serendipity_printArchives() {
$thisMonth = persian_date_utf('m', serendipity_serverOffsetHour());
break;
}
$max = 0;
$max = 1;
if (isset($serendipity['GET']['category'])) {
$cat_sql = serendipity_getMultiCategoriesSQL($serendipity['GET']['category']);