From cbcdd4cbb0b91561ec39a090b205e09584f9e6ae Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 16 Jan 2006 20:07:00 +0000 Subject: [PATCH] Use ->comments instead of . fixes #2293 git-svn-id: https://develop.svn.wordpress.org/trunk@3443 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index b6685e9091..f5852a3956 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -33,7 +33,7 @@ foreach ($rss->items as $item ) { get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5"); -$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '0'"); +$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); if ( $comments || $numcomments ) : ?>