mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: fixed query to get number of unmoderated comments
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99060 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3c3b8b40de
commit
c9b2355efe
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user