From af5be7831c15955a0031822e9d2db2317e4335b7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 3 Jun 2010 01:29:36 +0000 Subject: [PATCH] BUGFIX: fixed query to get number of unmoderated comments (from r99060) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@106126 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CommentAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index a377e7bf..9f5b6467 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -285,7 +285,7 @@ JS; * Return the number of unmoderated comments */ function NumUnmoderated() { - return DB::query("SELECT COUNT(*) FROM \"PageComment\" WHERE \"IsSpam\"=0 AND \"NeedsModeration\"=0")->value(); + return DB::query("SELECT COUNT(*) FROM \"PageComment\" WHERE \"IsSpam\"=0 AND \"NeedsModeration\"=1")->value(); } /**