Skip to content

Commit

Permalink
Remove useless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 2, 2024
1 parent b2ebc26 commit 0bef9e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions galette/lib/Galette/Repository/Members.php
Expand Up @@ -773,9 +773,7 @@ private function buildSelect(int $mode, ?array $fields, bool $photos, bool $coun
}

if ($mode == self::SHOW_LIST || $mode == self::SHOW_MANAGED) {
if ($this->filters !== false) {
$this->buildWhereClause($select);
}
$this->buildWhereClause($select);
} elseif ($mode == self::SHOW_PUBLIC_LIST) {
$select->where(
array(
Expand Down

0 comments on commit 0bef9e6

Please sign in to comment.