From 0fddb6ef75e2c3c62c429b926a72f3920877793f Mon Sep 17 00:00:00 2001 From: dpolakovics Date: Mon, 26 Aug 2024 16:36:07 +0200 Subject: [PATCH] Fix PHP Warning Fix: PHP Warning: Undefined array key "paginationPage" in /var/www/html/vendor/t3brightside/paginatedprocessors/Classes/Processing/DataToPaginatedData.php line 21 --- Classes/Processing/DataToPaginatedData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Processing/DataToPaginatedData.php b/Classes/Processing/DataToPaginatedData.php index 9e3a104..d770f1b 100644 --- a/Classes/Processing/DataToPaginatedData.php +++ b/Classes/Processing/DataToPaginatedData.php @@ -18,7 +18,7 @@ public function getPaginatedData ( $uniquePaginatorId = $cObj->stdWrapValue('uniqueId', $paginationSettings ?? []); $uniquePaginatorIdKey = $cObj->getRequest()->getQueryParams()['paginatorId'] ?? null; if($uniquePaginatorId == $uniquePaginatorIdKey) { - $currentPage = (int)$cObj->getRequest()->getQueryParams()['paginationPage'] ? : 1; + $currentPage = (int)($cObj->getRequest()->getQueryParams()['paginationPage'] ?? 1); } else { $currentPage = 1; }