Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Prevent endless loop and index out of range in pagination #798
Ensures re-pagination while avoiding endless loops and 'list index out of range'.
The endless loop can (could) easily be triggered.
The aforesaid 'list index out of range' error happens when resolving page based counters decreases the number of pages.