From: Michael Date: Sun, 11 Mar 2018 12:19:41 +0000 (+0000) Subject: Bugfix: Old dba function was used X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=26a68464673cc71d5b405b6dfb1fa05b2d398dde;p=friendica.git Bugfix: Old dba function was used --- diff --git a/mod/directory.php b/mod/directory.php index 5f3605ebff..f1e079d681 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -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 " );