Ignore $adv_ini if not set
Installer and sccp_manager construct - empty variable. Do not use if not set (will be set later)
This commit is contained in:
parent
913cbd14c4
commit
5c4bbaabba
|
@ -305,7 +305,7 @@ class extconfigs
|
|||
if (file_exists($adv_ini)){
|
||||
rename($adv_ini, "{$adv_ini}.old");
|
||||
}
|
||||
// TODO: index file is not declared
|
||||
if (!empty($adv_ini)) {
|
||||
$indexFile = fopen($adv_ini,'w');
|
||||
fwrite($indexFile, "[main]\n");
|
||||
foreach ($adv_config as $advKey => $advVal) {
|
||||
|
@ -313,6 +313,7 @@ class extconfigs
|
|||
}
|
||||
fclose($indexFile);
|
||||
$settingsFromDb['tftp_rewrite']['data'] = 'pro';
|
||||
}
|
||||
break;
|
||||
case 'on':
|
||||
case 'internal':
|
||||
|
|
Loading…
Reference in a new issue