From 3b13de68b2699ba7858dbfc4e779bf0890729794 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 11 Jun 2024 16:30:23 +0800 Subject: [PATCH] * [task#116512] Load model before useing it. --- module/backup/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/backup/control.php b/module/backup/control.php index 87498a2dc6..39be4bab93 100644 --- a/module/backup/control.php +++ b/module/backup/control.php @@ -119,7 +119,7 @@ class backup extends control $systemInfo->currentVersion = $version; $systemInfo->versionHint = $version; $systemInfo->latestVersion = $latestVersion; - $systemInfo->upgradeable = $version != $latestVersion && $this->system->isUpgradeable(); + $systemInfo->upgradeable = $version != $latestVersion && $this->loadModel('system')->isUpgradeable(); $systemInfo->upgradeHint = $systemInfo->upgradeable ? $this->lang->system->backup->versionInfo: null; $systemInfo->latestURL = !empty($latestVersionList[$version]->link) ? $latestVersionList[$version]->link : $this->lang->install->officeDomain;