Update extconfigs.class.php

This commit is contained in:
steve-lad 2021-07-20 12:55:23 +02:00
parent 477eb69146
commit be5890e61f

View file

@ -304,9 +304,11 @@ class extconfigs
} }
} }
// rewrite adv_ini to reflect the new $adv_config // rewrite adv_ini to reflect the new $adv_config
if (!empty($adv_ini)) {
if (file_exists($adv_ini)){ if (file_exists($adv_ini)){
rename($adv_ini, "{$adv_ini}.old"); rename($adv_ini, "{$adv_ini}.old");
} }
}
if (!empty($adv_ini)) { if (!empty($adv_ini)) {
$indexFile = fopen($adv_ini,'w'); $indexFile = fopen($adv_ini,'w');
fwrite($indexFile, "[main]\n"); fwrite($indexFile, "[main]\n");