修正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]);
}
/**

View File

@@ -856,11 +856,10 @@ class Query
/**
* 分析查询表达式
* @access public
* @param string $logic 查询逻辑
* @param string $logic 查询逻辑 and or xor
* @param string|array|\Closure $field 查询字段
* @param mixed $op 查询表达式
* @param mixed $condition 查询条件
* @param string $logic and or xor
* @param array $param 查询参数
* @return void
*/