mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed setcookie() usage.
(cherry picked from commit 023f4b1703275bf168bf3784c58f5ad54a32f5bc)
This commit is contained in:
parent
023148cacb
commit
51abaa0363
@ -792,9 +792,11 @@ function get_cookie($name, $default = '') {
|
|||||||
function set_cookie($name, $value) {
|
function set_cookie($name, $value) {
|
||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
unset($_COOKIE[$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