diff --git a/lib/Db/PreferenceMapper.php b/lib/Db/PreferenceMapper.php index 3248b96..e4db648 100644 --- a/lib/Db/PreferenceMapper.php +++ b/lib/Db/PreferenceMapper.php @@ -38,11 +38,7 @@ class PreferenceMapper extends ReaderMapper { ->andWhere($query->expr()->eq('user_id', $query->createNamedParameter($this->userId))); if (!empty($name)) { - $query->andWhere($query->expr()->eq('name', $query->createNamedParameter($name))); - - - - + $query->andWhere($query->expr()->eq('name', $query->createNamedParameter($name))); } return $this->findEntities($query);