修正Model类一处connection判断

This commit is contained in:
ThinkPHP
2013-04-15 18:38:32 +08:00
parent 2155bf078e
commit 3c34c9095c

View File

@@ -102,7 +102,7 @@ class Model {
// 数据库初始化操作
// 获取数据库操作对象
// 当前模型有独立的数据库连接信息
$this->db(0,empty($this->connection)?$connection:$this->connection);
$this->db(0,$this->connection);
}
/**