Skip to content

Commit 3e5d109

Browse files
committed
Fixes bcit-ci#6201
ctype_digit() should act only on string values.
1 parent a6faab2 commit 3e5d109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/libraries/Pagination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public function create_links()
515515
}
516516

517517
// If something isn't quite right, back to the default base page.
518-
if ( ! ctype_digit($this->cur_page) OR ($this->use_page_numbers && (int) $this->cur_page === 0))
518+
if ( ! ctype_digit((string) $this->cur_page) OR ($this->use_page_numbers && (int) $this->cur_page === 0))
519519
{
520520
$this->cur_page = $base_page;
521521
}

0 commit comments

Comments
 (0)