From 048d64f40bded979efd41beba280978ea03e0351 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 31 May 2024 17:34:13 +0800 Subject: [PATCH] * Fix bug #50499. --- framework/base/router.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index f7880ebf23..20a685956b 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -3455,11 +3455,13 @@ class baseRouter */ public function checkInstalled() { - if(!isset($this->config->installed) || !$this->config->installed) return false; - if(($this->config->inContainer || $this->config->inQuickon) && !$this->getInstalledVersion()) return false; + $installed = true; + if(!isset($this->config->installed) || !$this->config->installed) $installed = false; + if(($this->config->inContainer || $this->config->inQuickon) && !$this->getInstalledVersion()) $installed = false; - if(!isset($_SESSION['installing'])) $_SESSION['installing'] = true; - return true; + if(!isset($_SESSION['installing']) && !$installed && !empty($this->installing)) $_SESSION['installing'] = true; + + return $installed; } }