Quote:
for ($x = ($currentpage - $range); $x < (($currentpage + $range) + 1); $x++)
|
You have range set to 2. So lets say current page is 3.
Your loop will go
currentpage - range = 1
to
currentpage + range + 1=6
So you will be putting up links to pages 4, 5 and 6 that do not exist.
Not going to tell you how to fix it. This one is an easy one.
.