Skip to content

Commit

Permalink
[BUGFIX] Fix warnings for undefined keys in $settings array (#1228)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 30, 2024
1 parent cb9d2c8 commit 27030e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Repository/MetadataRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public function findBySettings(array $settings = []): QueryResultInterface

$constraints = [];

if ($settings['is_listed']) {
if (isset($settings['is_listed'])) {
$constraints[] = $query->equals('is_listed', 1);
}

if ($settings['is_sortable']) {
if (isset($settings['is_sortable'])) {
$constraints[] = $query->equals('is_sortable', 1);
}

Expand Down

0 comments on commit 27030e7

Please sign in to comment.