diff --git a/core/user.class.php b/core/user.class.php index 7352122b..9ab57a57 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -184,7 +184,7 @@ class User { } public function check_auth_token() { - return ($_POST["auth_token"] == $this->get_auth_token()); + return (isset($_POST["auth_token"]) && $_POST["auth_token"] == $this->get_auth_token()); } } ?>