mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 20:25:32 +01:00
auth.php: check if the cookie is set before deletion
This commit is contained in:
parent
9db8444c3c
commit
0c51d46cdf
@ -168,7 +168,10 @@ function destroyCookies() {
|
||||
];
|
||||
|
||||
foreach ($options_multi as $name => $options) {
|
||||
setcookie($name, 'deleted', $options);
|
||||
if (isset($_COOKIE[$name])) {
|
||||
setcookie($name, 'deleted', $options);
|
||||
unset($_COOKIE[$name]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user