forked from friendica/friendica-directory
Fix SQL error in search
This commit is contained in:
parent
4790067527
commit
a828e712a3
|
@ -30,9 +30,9 @@ class AccountTypeTabs
|
|||
public function render(string $route_name, string $current_type = '', $condition = '', $values = [], array $queryParams = []): string
|
||||
{
|
||||
if ($condition) {
|
||||
$condition .= 'AND ' . $condition;
|
||||
$condition = 'AND ' . $condition;
|
||||
}
|
||||
|
||||
|
||||
$stmt = 'SELECT `account_type`, COUNT(*) AS `count`
|
||||
FROM `profile` p
|
||||
JOIN `server` s ON s.`id` = p.`server_id` AND s.`available` AND NOT s.`hidden`
|
||||
|
|
Loading…
Reference in a new issue