From 775253c2eb90cbd9a0661d523d3cdccc7121233a Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Thu, 10 Apr 2008 09:01:05 +0000 Subject: [PATCH] Stricter check --- include/functions_entries.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 4d5a4216..09a3537f 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -1508,8 +1508,10 @@ function serendipity_printArchives() { $entries =& serendipity_db_query($q, false, 'assoc'); $group = array(); - foreach($entries AS $entry) { - $group[date('Ym', $entry['timestamp'])]++; + if (is_array($entries)) { + foreach($entries AS $entry) { + $group[date('Ym', $entry['timestamp'])]++; + } } $output = array();