From bc51ec3d839c228309b96cf02dc749ef6804e2ad Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 08:49:29 -0500 Subject: [PATCH] Refactoring the cookie class. --- system/cookie.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/cookie.php b/system/cookie.php index 7bf83d02..6bba4e7c 100644 --- a/system/cookie.php +++ b/system/cookie.php @@ -56,10 +56,7 @@ class Cookie { */ public static function put($name, $value, $minutes = 0, $path = '/', $domain = null, $secure = false, $http_only = false) { - if ($minutes < 0) - { - unset($_COOKIE[$name]); - } + if ($minutes < 0) unset($_COOKIE[$name]); return setcookie($name, $value, ($minutes != 0) ? time() + ($minutes * 60) : 0, $path, $domain, $secure, $http_only); }