修正Cookie类的has方法

This commit is contained in:
thinkphp
2016-06-18 23:10:40 +08:00
parent d653761ef5
commit 20eaa4f5b8
2 changed files with 2 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ class Cookie
{
$prefix = !is_null($prefix) ? $prefix : self::$config['prefix'];
$name = $prefix . $name;
return isset($_COOKIE[$name]) ? $value: null;
return isset($_COOKIE[$name]);
}
/**