diff --git a/Classes/Controller/ListViewController.php b/Classes/Controller/ListViewController.php index 324e5585a..348501540 100644 --- a/Classes/Controller/ListViewController.php +++ b/Classes/Controller/ListViewController.php @@ -81,7 +81,7 @@ public function mainAction(): void // extract collection(s) from collection parameter $collections = []; - if (array_key_exists('collection', $this->searchParams)) { + if (is_array($this->searchParams) && array_key_exists('collection', $this->searchParams)) { foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { $collections[] = $this->collectionRepository->findByUid((int) $collectionEntry); }