From d6800890df1318c8c6b3a7b2836e6f560e29bf76 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@3032 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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) ) { ?> +