mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 17:23:16 +00:00
Merge pull request #1015 from MrPetovan/bug/8922-forumdirectory-db-error
[forumdirectory] Add missing operator in SQL query
This commit is contained in:
commit
ec22a12365
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ function forumdirectory_content(App $a)
|
||||||
$total = 0;
|
$total = 0;
|
||||||
$cnt = DBA::fetchFirst("SELECT COUNT(*) AS `total` FROM `profile`
|
$cnt = DBA::fetchFirst("SELECT COUNT(*) AS `total` FROM `profile`
|
||||||
INNER JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
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);
|
User::PAGE_FLAGS_COMMUNITY);
|
||||||
if (DBA::isResult($cnt)) {
|
if (DBA::isResult($cnt)) {
|
||||||
$total = $cnt['total'];
|
$total = $cnt['total'];
|
||||||
|
|
Loading…
Reference in a new issue