From 6204cb5e82602403581ace34faa91747c9c3b76f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 10 Nov 2005 23:36:50 +0000 Subject: [PATCH] Don't loop over empty list. Props Mark Jaquith. fixes #1827 git-svn-id: https://develop.svn.wordpress.org/trunk@3032 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 6c51f385df..135e385ac0 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -81,12 +81,14 @@ if ( is_month() ) { +get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts ORDER BY post_date DESC"); +if ( count($arc_result) ) { ?> +