* Fix error the global $dao variable is replaced with a new instance when call function loadModel.

This commit is contained in:
liugang
2023-04-06 15:44:57 +08:00
committed by guofeilong
parent fa1cd1a510
commit 7c88ea6cdb
+2
View File
@@ -309,6 +309,8 @@ class baseModel
public function loadDAO()
{
global $config, $dao;
if(is_object($dao)) return $this->dao = $dao;
$driver = $config->db->driver;
if(!class_exists($driver))