Multiple pagination bug fixes & optimizations.

Signed-off-by: Eric Roberts <eric@cryode.com>
Remove spaces from concats.

Signed-off-by: Eric Roberts <eric@cryode.com>
Move $get assignment to if/else.

Signed-off-by: Eric Roberts <eric@cryode.com>
Replace is_numeric() with ctype_digit()

Signed-off-by: Eric Roberts <eric@cryode.com>
Merge pull request #2199 from cryode/feature/pagination

Multiple pagination bug fixes & optimizations.