Fix SQL error
git-svn-id: http://svn.automattic.com/wordpress/trunk@551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d08bcaead8
commit
089eae017b
|
@ -143,8 +143,8 @@ default:
|
|||
<div class="wrap">
|
||||
|
||||
<?php
|
||||
|
||||
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_approved = 0");
|
||||
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_approved = '0'");
|
||||
|
||||
if ($comments) {
|
||||
// list all comments that are waiting for approval
|
||||
$file = basename(__FILE__);
|
||||
|
|
Loading…
Reference in New Issue