This commit is contained in:
PhantomVl 2018-06-25 11:15:21 +03:00
parent cd8e33a063
commit 5d2944ab7a

View file

@ -555,7 +555,7 @@ function Setup_RealTime() {
$ext_conf = $cnf_read->getConfig('extconfig.conf'); $ext_conf = $cnf_read->getConfig('extconfig.conf');
} }
if (!empty($res_conf_sql)) { if (!empty($res_conf_sql)) {
if (!file_exists($res_conf_sql)) { if (file_exists($res_conf_sql)) {
$def_bd_config['dbsock'] = $res_conf_sql; $def_bd_config['dbsock'] = $res_conf_sql;
} }
} }
@ -597,7 +597,7 @@ function Setup_RealTime() {
} }
if (empty($res_conf)) { if (empty($res_conf)) {
$res_conf[$def_bd_sec] = $def_bd_config; $res_conf[$def_bd_sec] = $def_bd_config;
$res_conf['general']['dbsock'] = $res_conf[$def_bd_sec]['dbsock']; $res_conf['general']['dbsock'] = $def_bd_config['dbsock'];
$cnf_wr->writeConfig('res_config_mysql.conf', $res_conf, false); $cnf_wr->writeConfig('res_config_mysql.conf', $res_conf, false);
} }
$cnf_wr->writeConfig('extconfig.conf', $ext_conf, false); $cnf_wr->writeConfig('extconfig.conf', $ext_conf, false);