fix page number logic

This commit is contained in:
Shish 2019-11-08 17:34:06 +00:00
parent 1a4a76c324
commit 10b9e0ccbc

View file

@ -120,7 +120,7 @@ class PageRequestEvent extends Event
{ {
if ($this->count_args() > $n) { if ($this->count_args() > $n) {
$i = $this->get_arg($n); $i = $this->get_arg($n);
if (!is_numeric($i) || $i <= 0) { if (is_numeric($i) && int_escape($i) > 0) {
return int_escape($i); return int_escape($i);
} else { } else {
return 1; return 1;