We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c49b53 commit a7b2d1cCopy full SHA for a7b2d1c
Classes/Controller/ModuleController.php
@@ -94,7 +94,9 @@ public function listAction(): ResponseInterface
94
$formUids = $this->mailRepository->findGroupedFormUidsToGivenPageUid((int)$this->id);
95
$mails = $this->mailRepository->findAllInPid((int)$this->id, $this->settings, $this->piVars);
96
97
- $currentPage = (int)($this->request->getParsedBody()['currentPage'] ?? $this->request->getQueryParams()['currentPage'] ?? 1);
+ $parsedBody = $this->request->getParsedBody() ?? [];
98
+ assert(is_array($parsedBody));
99
+ $currentPage = (int)($parsedBody['currentPage'] ?? $this->request->getQueryParams()['currentPage'] ?? 1);
100
$currentPage = $currentPage > 0 ? $currentPage : 1;
101
102
$itemsPerPage = (int)($this->settings['perPage'] ?? 10);
0 commit comments