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>
Allow non-string values to be used as captcha words (issue #2215)
[ci skip] Add a missing space
Merge pull request #2199 from cryode/feature/pagination

Multiple pagination bug fixes & optimizations.
[ci skip] Remove unnecessary string casts in Pagination
Fix issue #2230