page parameter is now checked with isset to prevent errors if it is not supplied

This commit is contained in:
Maurice Meyer 2016-06-06 10:13:59 +02:00
parent 4987c22671
commit 5f0290f0bb

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();
}