Fix SQL error in search

This commit is contained in:
Hypolite Petovan 2018-11-17 23:48:08 -05:00
parent 4790067527
commit a828e712a3

View file

@ -30,7 +30,7 @@ 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`