From ecf679aeaf4c2d6b2bfa7fcee4365b88a89b5aaa Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 25 Feb 2022 09:12:19 +0800 Subject: [PATCH] * Fix the problem of calling config error in static method. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 118eff18fd..0694bbb2bf 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1780,7 +1780,7 @@ EOD; * 当主状态改变并且未设置子状态的值时把子状态的值设置为默认值并记录日志。 * Change sub status when status is changed and sub status is not set, and record the changes. */ - if($this->config->edition != 'open') + if($config->edition != 'open') { $oldID = zget($old, 'id', ''); $oldStatus = zget($old, 'status', '');