sometimes, there is no token :O
This commit is contained in:
parent
70fc4b5a54
commit
ae56e591e9
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue