From 4a791af046c7481406f76b51e6e4185041195c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=B2sweg?= Date: Sat, 29 Aug 2020 18:54:13 +0200 Subject: [PATCH] Fix page selector for three pages --- user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.php b/user.php index 25499c9..c4dbd43 100644 --- a/user.php +++ b/user.php @@ -230,7 +230,7 @@ if(isset($_GET["p"])){ $ps_margin = 2; // Amount of page numbers to show after and before the actual one // Limit displayed numbers to the existing ones (bound logic) - if($_GET["page"] - $ps_margin < 1) $ps_init = 1; + if($_GET["page"] - $ps_margin <= 1) $ps_init = 1; else if($_GET["page"] + $ps_margin > $p_total) $ps_init = $p_total - $ps_margin * 2; else $ps_init = $_GET["page"] - $ps_margin;