]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Old dba function was used
authorMichael <heluecht@pirati.ca>
Sun, 11 Mar 2018 12:19:41 +0000 (12:19 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 11 Mar 2018 12:19:41 +0000 (12:19 +0000)
mod/directory.php

index 5f3605ebffb01162a8a0abfb2a078ea76c46579b..f1e079d68180d96d696f7808c33b1a7bf33818ea 100644 (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 "
        );