sometimes, there is no token :O

This commit is contained in:
Shish 2012-01-26 17:36:22 +00:00
parent 70fc4b5a54
commit ae56e591e9

View file

@ -184,7 +184,7 @@ class User {
} }
public function check_auth_token() { 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());
} }
} }
?> ?>