mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'cherry-pick-023f4b17' into 'pandora_6.0'
Fixed setcookie() usage. See merge request !205
This commit is contained in:
commit
776f04ed56
@ -792,9 +792,11 @@ function get_cookie($name, $default = '') {
|
||||
function set_cookie($name, $value) {
|
||||
if (is_null($value)) {
|
||||
unset($_COOKIE[$value]);
|
||||
setcookie($value, null, -1, '/');
|
||||
setcookie($name, null, -1, '/');
|
||||
}
|
||||
else {
|
||||
setcookie($name, $value);
|
||||
}
|
||||
setcookie($name, $value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user