From 0fb918210171944d6dc12a985511158adb747745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Thu, 24 Feb 2022 13:07:25 +0800 Subject: [PATCH] * Fix bug. --- module/upgrade/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 51562f4eaa..16415aa9dd 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -418,11 +418,11 @@ class upgradeModel extends model set_time_limit(0); $this->updateActivatedDate(); - if(is_numeric($fromVersion[0] == 'm')) break; + if($fromVersion[0] == 'm') break; $this->execSQL($this->getUpgradeFile('maxinstall')); $this->execSQL($this->getUpgradeFile('functions')); - if(is_numeric($fromVersion[0] == 'b')) break; + if($fromVersion[0] == 'b') break; $this->execSQL($this->getUpgradeFile('bizinstall')); if(!empty($this->config->isINT)) { @@ -430,7 +430,7 @@ class upgradeModel extends model $this->execSQL($xuanxuanSql); } - if(is_numeric($fromVersion[0] == 'p')) break; + if($fromVersion[0] == 'p') break; $this->execSQL($this->getUpgradeFile('proinstall')); break; }