diff --git a/framework/router.class.php b/framework/router.class.php index ff5c26ccec..49fbdd8e39 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -217,7 +217,8 @@ class router extends baseRouter */ public function mergeFlowLang() { - if(defined('IN_UPGRADE')) return; + if(!$this->dbh || empty($this->config->db->name)) return; + if($this->installing || $this->upgrading) return; $flows = $this->dbQuery('SELECT * FROM ' . TABLE_WORKFLOW . " WHERE `buildin` = 0 AND `vision` = '{$this->config->vision}' AND status = 'normal' AND type = 'flow' AND `navigator` = 'primary'")->fetchAll(); foreach($flows as $flow) $this->lang->mainNav->{$flow->module} = "{$this->lang->navIcons['workflow']} {$flow->name}|{$flow->module}|browse|";