Fix SQL error

git-svn-id: https://develop.svn.wordpress.org/trunk@551 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little
2003-11-23 01:15:24 +00:00
parent 19944d4b1a
commit 26dde5e892

View File

@@ -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__);