Skip to content

Commit

Permalink
Fix warnings for undefined keys in $settings array
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed May 30, 2024
1 parent ac9750f commit f90021d
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 f90021d

Please sign in to comment.