sometimes, there is no token :O
This commit is contained in:
parent
70fc4b5a54
commit
ae56e591e9
@ -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());
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user