Skip to content

Commit

Permalink
[BUGFIX] Avoid "Undefined array key" in FilterService
Browse files Browse the repository at this point in the history
Related: #24
  • Loading branch information
julianhofmann committed Dec 2, 2023
1 parent 0b0261a commit 6046bf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Service/FilterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@ protected function buildFilter(): void

protected function getTypoScriptFilterConfiguration(): array
{
if (is_array($this->settings['filters']) && !empty($this->settings['filters'])) {
return $this->settings['filters'];
$filters = $this->settings['filters'] ?? [];

if (is_array($filters) && !empty($filters)) {
return $filters;
}

$this->logger->error(
Expand Down

0 comments on commit 6046bf1

Please sign in to comment.