diff --git a/helper.php b/helper.php index 16f3f0ed..e0af9dca 100644 --- a/helper.php +++ b/helper.php @@ -115,7 +115,7 @@ if (!function_exists('input')) { * @param string $filter 过滤方法 * @return mixed */ - function input($key, $default = null, $filter = null) + function input($key = '', $default = null, $filter = null) { if (0 === strpos($key, '?')) { $key = substr($key, 1);