fix page number logic
This commit is contained in:
parent
1a4a76c324
commit
10b9e0ccbc
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class PageRequestEvent extends Event
|
|||
{
|
||||
if ($this->count_args() > $n) {
|
||||
$i = $this->get_arg($n);
|
||||
if (!is_numeric($i) || $i <= 0) {
|
||||
if (is_numeric($i) && int_escape($i) > 0) {
|
||||
return int_escape($i);
|
||||
} else {
|
||||
return 1;
|
||||
|
|
Reference in a new issue