From 73295587771db91ccc9a7ea8188350c2fdd60917 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 16 Mar 2023 14:46:48 +0800 Subject: [PATCH] * fix sonar error. --- framework/router.class.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/framework/router.class.php b/framework/router.class.php index 11d4224ba6..edfc99616f 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -101,8 +101,6 @@ class router extends baseRouter global $lang; if(!is_object($lang)) $lang = new language(); - $appName = ''; - /* Set productCommon and projectCommon for flow. */ if($moduleName == 'common') $this->setCommonLang(); @@ -367,9 +365,6 @@ class router extends baseRouter public function loadModuleConfig($moduleName, $appName = '') { global $config; - - $appName = ''; - if($config and (!isset($config->$moduleName) or !is_object($config->$moduleName))) $config->$moduleName = new stdclass(); /* 初始化数组。Init the variables. */