diff --git a/services/Cookies_UtilsService.php b/services/Cookies_UtilsService.php index b9ebb04..7352724 100644 --- a/services/Cookies_UtilsService.php +++ b/services/Cookies_UtilsService.php @@ -12,7 +12,7 @@ public function set($name = "", $value = "", $expire = 0, $path = "", $domain = { $expire = (int) $expire; /* -- Make sure the cookie expiry is in the past if we're deleting the cookie */ - if (value=="") + if ($value=="") $expire = (int)(time() - 3600); setcookie($name, $value, $expire, $path, $domain, $secure, $httponly); $_COOKIE[$name] = $value; @@ -38,7 +38,7 @@ public function setSecure($name = "", $value = "", $expire = 0, $path = "", $dom { $expire = (int) $expire; /* -- Make sure the cookie expiry is in the past if we're deleting the cookie */ - if (value=="") + if ($value=="") $expire = (int)(time() - 3600); $cookie = new HttpCookie($name, '');