From a4e3907f138161d1f5f23ccee819b6640e2e2b49 Mon Sep 17 00:00:00 2001 From: Thomas Jakobi Date: Sun, 11 May 2025 16:11:43 +0200 Subject: [PATCH] Fix a too strict check $page contains an integer and $i contains a float during my tests --- core/components/pdotools/src/Support/Paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/pdotools/src/Support/Paginator.php b/core/components/pdotools/src/Support/Paginator.php index a4f07a77..00ee90c7 100644 --- a/core/components/pdotools/src/Support/Paginator.php +++ b/core/components/pdotools/src/Support/Paginator.php @@ -316,7 +316,7 @@ public function buildClassicPagination($page = 1, $pages = 5, $url = '') break; } - if ($page === $i && !empty($this->pdoTools->config('tplPageActive'))) { + if ($page == $i && !empty($this->pdoTools->config('tplPageActive'))) { $tpl = $this->pdoTools->config('tplPageActive'); } elseif (!empty($this->pdoTools->config('tplPage'))) { $tpl = $this->pdoTools->config('tplPage');