diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index c16cb4debe..b31cf38e9e 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -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); } /**