]> git.mjollnir.org Git - s9y.git/commitdiff
Stricter check
authorgarvinhicking <garvinhicking>
Thu, 10 Apr 2008 09:01:05 +0000 (09:01 +0000)
committergarvinhicking <garvinhicking>
Thu, 10 Apr 2008 09:01:05 +0000 (09:01 +0000)
include/functions_entries.inc.php

index 4d5a42165ae66dd2713173b435aa23bb13235e63..09a3537fed633793965259212e3402c1bd46299d 100644 (file)
@@ -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();