From c1df565530320730f41d7338a2a8b8c1dbe9f473 Mon Sep 17 00:00:00 2001 From: pwf0112 Date: Sat, 16 Jan 2016 11:46:43 +0800 Subject: [PATCH] =?UTF-8?q?Loader::db=20=E5=8F=82=E6=95=B0$config=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Loader.php b/library/think/Loader.php index 1d209157..943b5082 100644 --- a/library/think/Loader.php +++ b/library/think/Loader.php @@ -324,7 +324,7 @@ class Loader * @param boolean $lite 是否采用lite方式连接 * @return object */ - public static function db($config, $lite = false) + public static function db($config = [], $lite = false) { return Db::instance($config, $lite); }