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); } /**