Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit f5772a2

Browse files
committed
Fix "Notice: Undefined variable: items" on search action
1 parent d5e6142 commit f5772a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Action/SearchAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public function handle($contentType = null, Request $request, ParameterCollectio
5656
/** @var Page $page */
5757
$page = $parameters->get('page');
5858

59+
/** @var array $items */
60+
$items = [];
61+
5962
foreach ($results as $key => $item) {
6063
$contentType = (string) $item->getContenttype();
6164
// optimize this part...

0 commit comments

Comments
 (0)