File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 = (int ) ($ this ->settings ['itemsPerPage ' ] ?? 20 ) ;
72+ $ itemsPerPage = (isset ( $ this -> settings [ ' itemsPerPage ' ]) && is_numeric ($ this ->settings ['itemsPerPage ' ])) ? ( int ) $ this -> settings [ ' itemsPerPage ' ] : 20 ;
7373
7474 $ orderItems = $ this ->itemRepository ->findAll ($ this ->searchArguments );
7575 $ arrayPaginator = new QueryResultPaginator (
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public function listAction(int $currentPage = 1): ResponseInterface
4949 $ feUserUid = $ this ->context ->getPropertyFromAspect ('frontend.user ' , 'id ' );
5050 $ orderItems = $ this ->itemRepository ->findBy (['feUser ' => $ feUserUid ]);
5151
52- $ itemsPerPage = is_numeric ($ this ->settings ['itemsPerPage ' ]) ? (int )$ this ->settings ['itemsPerPage ' ] : 20 ;
52+ $ itemsPerPage = ( isset ( $ this -> settings [ ' itemsPerPage ' ]) && is_numeric ($ this ->settings ['itemsPerPage ' ]) ) ? (int )$ this ->settings ['itemsPerPage ' ] : 20 ;
5353
5454 $ arrayPaginator = new QueryResultPaginator (
5555 $ orderItems ,
You can’t perform that action at this time.
0 commit comments