Merge pull request #4578 from annando/bugfix-directory

Bugfix: Old dba function was used
This commit is contained in:
Hypolite Petovan 2018-03-11 08:23:16 -04:00 committed by GitHub
commit 0e6ada2462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ function directory_content(App $a)
$publish = ((Config::get('system', 'publish_all')) ? '' : " AND `publish` = 1 " );
$cnt = dba::select_first("SELECT COUNT(*) AS `total` FROM `profile`
$cnt = dba::selectFirst("SELECT COUNT(*) AS `total` FROM `profile`
LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 $sql_extra "
);