From 9b296786d5642c54ada2b306451265e36f13430c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 7 Sep 2020 20:31:24 -0400 Subject: [PATCH] [forumdirectory] Add missing operator in SQL query --- forumdirectory/forumdirectory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forumdirectory/forumdirectory.php b/forumdirectory/forumdirectory.php index ce37e8e55..530239fd2 100644 --- a/forumdirectory/forumdirectory.php +++ b/forumdirectory/forumdirectory.php @@ -90,7 +90,7 @@ function forumdirectory_content(App $a) $total = 0; $cnt = DBA::fetchFirst("SELECT COUNT(*) AS `total` FROM `profile` INNER JOIN `user` ON `user`.`uid` = `profile`.`uid` - WHERE $publish AND NOT `user`.`blocked` AND NOT `user`.`account_removed` `user`.`page-flags` = ? $sql_extra", + WHERE $publish AND NOT `user`.`blocked` AND NOT `user`.`account_removed` AND `user`.`page-flags` = ? $sql_extra", User::PAGE_FLAGS_COMMUNITY); if (DBA::isResult($cnt)) { $total = $cnt['total'];