fix cookie bug.

This commit is contained in:
Taylor Otwell
2012-02-01 11:02:12 -06:00
parent 33f34aa479
commit 2504f8693f

View File

@@ -72,7 +72,7 @@ class Cookie {
*/
public static function get($name, $default = null)
{
if (isset(static::$jar[$name])) return static::$jar[$name];
if (isset(static::$jar[$name])) return static::$jar[$name]['value'];
$value = array_get($_COOKIE, $name);