Merge pull request #4578 from annando/bugfix-directory
Bugfix: Old dba function was used
This commit is contained in:
commit
0e6ada2462
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ function directory_content(App $a)
|
||||||
$publish = ((Config::get('system', 'publish_all')) ? '' : " AND `publish` = 1 " );
|
$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`
|
LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
||||||
WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 $sql_extra "
|
WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 $sql_extra "
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue