From 3c34c9095caf4afc17da2f846bf732229d2962e6 Mon Sep 17 00:00:00 2001 From: ThinkPHP Date: Mon, 15 Apr 2013 18:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Model=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E5=A4=84connection=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Think/Model.php b/Library/Think/Model.php index 2b4756b1..a491d6ca 100644 --- a/Library/Think/Model.php +++ b/Library/Think/Model.php @@ -102,7 +102,7 @@ class Model { // 数据库初始化操作 // 获取数据库操作对象 // 当前模型有独立的数据库连接信息 - $this->db(0,empty($this->connection)?$connection:$this->connection); + $this->db(0,$this->connection); } /**