mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed setcookie() usage.
This commit is contained in:
parent
163b061af0
commit
023f4b1703
@ -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