places: fix duplicate where

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/767/head
Varun Patil 2023-08-02 19:33:15 -07:00
parent 6f961b59ae
commit 62eea6c4e1
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class PlacesBackend extends Backend
// Else if we are looking for countries
elseif (-1 === $inside) {
$query->where($query->expr()->eq('e.admin_level', $query->expr()->literal(2, \PDO::PARAM_INT)));
$query->andWhere($query->expr()->eq('e.admin_level', $query->expr()->literal(2, \PDO::PARAM_INT)));
}
// AND these items are marked (only if not inside)