mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
修正Model类一处BUG
This commit is contained in:
@@ -1114,7 +1114,7 @@ abstract class Driver
|
||||
*/
|
||||
public function getLastSql($model = '')
|
||||
{
|
||||
return $model ? $this->modelSql[$model] : $this->queryStr;
|
||||
return ($model && isset($this->modelSql[$model])) ? $this->modelSql[$model] : $this->queryStr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user