update thinkphp/base.php

修改I函数$default默认值为null ,避免在isset()函数检测不到输入值时将输入值默认为空字符串的问题,
默认值为空字符串的话,逻辑代码需要手动判断输入值是空字符串还是没有传此值.
This commit is contained in:
liuzhaowei55
2015-12-16 11:01:37 +08:00
parent d8ad614ae0
commit 6e9dc16d35

View File

@@ -69,7 +69,7 @@ function C($name = '', $value = null, $range = '')
}
// 获取输入数据 支持默认值和过滤
function I($key, $default = '', $filter = '')
function I($key, $default = null, $filter = '')
{
if (strpos($key, '.')) {
// 指定参数来源