From 809b7aa594147c44bba9f960965de781f141b80e Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 16 Feb 2025 11:00:08 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index b27cbf1..c7ead6f 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2238,7 +2238,7 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $ { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) { - if ($counter == 1) // link 1st pagination page to parent page instead of ?page=1 for SEO + if ($counter == 1 && $counter !== $page) // link 1st pagination page to parent page instead of ?page=1 for SEO $pagination .= '
  • 1
  • '; else if ($counter == $page) $pagination .= '
  • '. $counter .'
  • ';