mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
"fixed fatal error \"Exception thrown without a stack frame in Unknown on line 0\", if DB does not exist when calling setup"
This commit is contained in:
parent
12f7232ee2
commit
1ab52586bd
@ -97,6 +97,8 @@ class setup
|
||||
$GLOBALS['egw_info']['server']['db_persistent'] = False;
|
||||
}
|
||||
$GLOBALS['egw']->db = $this->db = new egw_db();
|
||||
|
||||
try {
|
||||
$this->db->connect(
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_name'],
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_host'],
|
||||
@ -105,6 +107,10 @@ class setup
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_pass'],
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_type']
|
||||
);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
return;
|
||||
}
|
||||
$this->db->set_app('phpgwapi');
|
||||
|
||||
if ($connect_and_setcharset)
|
||||
|
Loading…
Reference in New Issue
Block a user