Skip to content

Commit fcebcc1

Browse files
authored
Merge pull request #723 from extcode/backport-fix-undefined-array-key-itemsPerPage
[BUGFIX] Fix undefined array key "itemsPerPage"
2 parents 21adcb2 + 63fb034 commit fcebcc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controller/Backend/Order/OrderController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function listAction(int $currentPage = 1): ResponseInterface
6969
$this->moduleTemplate->assign('settings', $this->settings);
7070
$this->moduleTemplate->assign('searchArguments', $this->searchArguments);
7171

72-
$itemsPerPage = is_numeric($this->settings['itemsPerPage']) ? (int)$this->settings['itemsPerPage'] : 20;
72+
$itemsPerPage = (int)($this->settings['itemsPerPage'] ?? 20);
7373

7474
$orderItems = $this->itemRepository->findAll($this->searchArguments);
7575
$arrayPaginator = new QueryResultPaginator(

0 commit comments

Comments
 (0)