From b176949a7a00571b6f727c3b43223221e6e4072a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 11 Dec 2015 20:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3C=E5=87=BD=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E8=AE=BE=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.php b/base.php index ce42b226..95b27a18 100644 --- a/base.php +++ b/base.php @@ -61,7 +61,7 @@ function L($name) // 获取配置参数 function C($name = '', $value = null, $range = '') { - if (is_null($value)) { + if (is_null($value) && is_string($name)) { return think\Config::get($name, $range); } else { return think\Config::set($name, $value, $range);