Use the right field name ya idjit.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-04-27 04:34:44 +00:00
parent d44752d2ca
commit 8aaa48e041
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ function &get_comment(&$comment, $output = OBJECT) {
$_comment = & $comment_cache[$comment->comment_ID];
} else {
$comment = (int) $comment;
if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->id == $comment) ) {
if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->comment_ID == $comment) ) {
$_comment = & $GLOBALS['comment'];
} elseif ( !isset($comment_cache[$comment]) ) {
$_comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment' LIMIT 1");