Fix page selector for three pages

This commit is contained in:
Pòsweg 2020-08-29 18:54:13 +02:00
parent 25e06f9ece
commit 4a791af046
1 changed files with 1 additions and 1 deletions

View File

@ -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;