[forumdirectory] Add missing operator in SQL query #1015

Merged
MrPetovan merged 1 commit from bug/8922-forumdirectory-db-error into 2020.09-rc 2020-09-08 03:52:02 +02:00
Showing only changes of commit 9b296786d5 - Show all commits

View file

@ -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'];