File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,9 @@ public function listAction(): ResponseInterface
94
94
$ formUids = $ this ->mailRepository ->findGroupedFormUidsToGivenPageUid ((int )$ this ->id );
95
95
$ mails = $ this ->mailRepository ->findAllInPid ((int )$ this ->id , $ this ->settings , $ this ->piVars );
96
96
97
- $ currentPage = (int )($ this ->request ->getParsedBody ()['currentPage ' ] ?? $ this ->request ->getQueryParams ()['currentPage ' ] ?? 1 );
97
+ $ parsedBody = $ this ->request ->getParsedBody () ?? [];
98
+ assert (is_array ($ parsedBody ));
99
+ $ currentPage = (int )($ parsedBody ['currentPage ' ] ?? $ this ->request ->getQueryParams ()['currentPage ' ] ?? 1 );
98
100
$ currentPage = $ currentPage > 0 ? $ currentPage : 1 ;
99
101
100
102
$ itemsPerPage = (int )($ this ->settings ['perPage ' ] ?? 10 );
You can’t perform that action at this time.
0 commit comments