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