Skip to content

Commit b30b74f

Browse files
committed
Fixed: Pagination::create_links() not compatible with PHP 8.1
1 parent f4d6b31 commit b30b74f

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
@@ -523,7 +523,7 @@ public function create_links()
523523
}
524524

525525
// If something isn't quite right, back to the default base page.
526-
if ( ! ctype_digit($this->cur_page) OR ($this->use_page_numbers && (int) $this->cur_page === 0))
526+
if ( ! ctype_digit((string) $this->cur_page) OR ($this->use_page_numbers && (int) $this->cur_page === 0))
527527
{
528528
$this->cur_page = $base_page;
529529
}

0 commit comments

Comments
 (0)