From 92e501f6da6d0e204ea781642ae2e4fda12a51cf Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Tue, 1 Dec 2020 14:21:00 +0800 Subject: [PATCH] * Fix bug. --- framework/router.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/router.class.php b/framework/router.class.php index 9521cfbfe3..4cd961ccd0 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -163,8 +163,7 @@ class router extends baseRouter if($this->session->PRJ) $model = $this->dbh->query('SELECT model FROM' . TABLE_PROJECT . "WHERE id = {$this->session->PRJ}")->fetch(); if(isset($model->model) && $model->model == 'waterfall') - { - $projectIndex = 2; + { $projectIndex = 2; } /* Set productCommon, projectCommon, hourCommon and planCommon. Default english lang. */ @@ -176,7 +175,7 @@ class router extends baseRouter $config->URAndSR = $URAndSR; $config->URSRName = $URSRName; - if($this->dbh and !empty($this->config->db->name) and !IN_UPGRADE) + if($this->dbh and !empty($this->config->db->name) and !defined('IN_UPGRADE')) { /* Get story concept in project and product. */ $URLists = $this->dbh->query('SELECT `key`, `value` FROM' . TABLE_LANG . "WHERE module = 'custom' and section = 'URList' and lang = \"{$this->clientLang}\"")->fetchAll();