Added isset check to $input->page to prevent errors if it is not set

This commit is contained in:
Maurice Meyer 2016-06-07 18:46:42 +02:00
parent cc49114ccc
commit 7850b9d204

View file

@ -29,7 +29,7 @@ if(!isset($input->csrfToken) || $input->csrfToken !== $_SESSION['csrfToken']) {
if(isset($input->action) && $input->action == "getDomains") {
// Check if the requested page is a number
if(!(is_int($input->page) && $input->page > 0)) {
if(!(isset($input->page) && is_int($input->page) && $input->page > 0)) {
echo "Requested page must be a positive number!";
exit();
}