From 10edf3735fe295a764b9f9b3b189672a03d1c17f Mon Sep 17 00:00:00 2001 From: erk <105105707+beetofly@users.noreply.github.com> Date: Wed, 21 Dec 2022 16:18:51 +0100 Subject: [PATCH] fixed-php8-incompatibility (#35) Co-authored-by: erk --- Controller/TriggerCampaignController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/TriggerCampaignController.php b/Controller/TriggerCampaignController.php index 9d5b075..0fce6f7 100644 --- a/Controller/TriggerCampaignController.php +++ b/Controller/TriggerCampaignController.php @@ -418,7 +418,7 @@ protected function getTriggerCampaigns($filter, $start, $limit, $orderBy, $order protected function redirectToLastPage(int $count, int $limit): Response { - $lastPage = (1 === $count) ? 1 : (ceil($count / $limit)) ?: 1; + $lastPage = ((1 === $count) ? 1 : (ceil($count / $limit))) ?: 1; $this->session->set(self::SESSION_VARS['search'], $lastPage); $viewParameters = ['page' => $lastPage];