mirror of
https://github.com/friendica/friendica
synced 2024-12-23 11:20:15 +00:00
Need the count conditions to match.
This commit is contained in:
parent
7243dcfb09
commit
b9a1e2e97f
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ function directory_content(App $a)
|
||||||
|
|
||||||
$cnt = dba::fetch_first("SELECT COUNT(*) AS `total` FROM `profile`
|
$cnt = dba::fetch_first("SELECT COUNT(*) AS `total` FROM `profile`
|
||||||
LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
||||||
WHERE `is-default` $publish AND NOT `user`.`blocked` $sql_extra");
|
WHERE `is-default` $publish AND NOT `user`.`blocked` AND NOT `user`.`account_removed` $sql_extra");
|
||||||
if (DBM::is_result($cnt)) {
|
if (DBM::is_result($cnt)) {
|
||||||
$a->set_pager_total($cnt['total']);
|
$a->set_pager_total($cnt['total']);
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ function directory_content(App $a)
|
||||||
`contact`.`addr`, `contact`.`url` AS profile_url FROM `profile`
|
`contact`.`addr`, `contact`.`url` AS profile_url FROM `profile`
|
||||||
LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
||||||
LEFT JOIN `contact` ON `contact`.`uid` = `user`.`uid`
|
LEFT JOIN `contact` ON `contact`.`uid` = `user`.`uid`
|
||||||
WHERE `is-default` $publish AND `user`.`blocked` = 0 AND `user`.`account_removed` = 0 AND `contact`.`self`
|
WHERE `is-default` $publish AND NOT `user`.`blocked` AND NOT `user`.`account_removed` AND `contact`.`self`
|
||||||
$sql_extra $order LIMIT $limit"
|
$sql_extra $order LIMIT $limit"
|
||||||
);
|
);
|
||||||
if (DBM::is_result($r)) {
|
if (DBM::is_result($r)) {
|
||||||
|
|
Loading…
Reference in a new issue