#9893 changed connect 2

This commit is contained in:
Daniel Maya 2023-02-27 15:50:26 +01:00
parent e6d2cc3cfa
commit 8c5e59afee
1 changed files with 3 additions and 3 deletions

View File

@ -155,10 +155,10 @@ if (! defined('ENTERPRISE_DIR')) {
db_select_engine(); db_select_engine();
if (empty($config['remote_config']) === false if (empty($config['remote_config']) === false
&& file_exists($config['remote_config'].'/'.PANDORA_HA_FILE) && file_exists($config['remote_config'].'/conf/'.PANDORA_HA_FILE)
&& filesize($config['remote_config'].'/'.PANDORA_HA_FILE) > 0 && filesize($config['remote_config'].'/conf/'.PANDORA_HA_FILE) > 0
) { ) {
$data = file_get_contents($config['remote_config'].'/'.PANDORA_HA_FILE); $data = file_get_contents($config['remote_config'].'/conf/'.PANDORA_HA_FILE);
if (empty($data) === false) { if (empty($data) === false) {
$ip_list = explode(',', $data); $ip_list = explode(',', $data);
// Connects to the first pandora_ha_dbs.conf database. // Connects to the first pandora_ha_dbs.conf database.