From 82ed2a872947ff596043f2d23a6acb3afe96d41b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 21 Jan 2016 18:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Db.php b/library/think/Db.php index 5b6f2334..3c45bf7c 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -41,7 +41,7 @@ class Db if (empty($options['type'])) { throw new Exception('db type error'); } - $class = !empty($options['namespace']) ? $options['namespace'] : '\\think\\db\\driver\\') . ucwords($options['type']; + $class = (!empty($options['namespace']) ? $options['namespace'] : '\\think\\db\\driver\\') . ucwords($options['type']); self::$instances[$md5] = new $class($options); } self::$instance = self::$instances[$md5];