From e196308fa07d16ae2c3073f6387f5ff4335dd07d Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 16 Jun 2017 18:26:11 +0100 Subject: [PATCH] fix pagination bug --- src/Template/Main/address.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Main/address.ctp b/src/Template/Main/address.ctp index 38d1054..a2a7692 100644 --- a/src/Template/Main/address.ctp +++ b/src/Template/Main/address.ctp @@ -210,7 +210,7 @@ 0): $start = $numPages > 1 ? 1 : 0; - $end = $numPages > 1 ? 10 : 0; + $end = $numPages > 1 ? min($numPages, 10) : 0; // use currentPage as the starting point if ($numPages > 10) { if ($currentPage > 5) {