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;