Use ->comments instead of . fixes #2293

git-svn-id: https://develop.svn.wordpress.org/trunk@3443 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-01-16 20:07:00 +00:00
parent 3329ef57fd
commit cbcdd4cbb0
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ foreach ($rss->items as $item ) {
<?php
$comments = $wpdb->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 ) :
?>