From 5d2944ab7a32b3558331c4bc2d87a7e0416a6fc9 Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Mon, 25 Jun 2018 11:15:21 +0300 Subject: [PATCH] Bug Fix --- install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index cc617f4..c52f30f 100644 --- a/install.php +++ b/install.php @@ -555,7 +555,7 @@ function Setup_RealTime() { $ext_conf = $cnf_read->getConfig('extconfig.conf'); } if (!empty($res_conf_sql)) { - if (!file_exists($res_conf_sql)) { + if (file_exists($res_conf_sql)) { $def_bd_config['dbsock'] = $res_conf_sql; } } @@ -597,7 +597,7 @@ function Setup_RealTime() { } if (empty($res_conf)) { $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('extconfig.conf', $ext_conf, false);