Update app_defaults.php

Check to see if the file exists before renaming it.
This commit is contained in:
FusionPBX 2017-01-09 23:26:54 -07:00 committed by GitHub
parent cd3c9d0e52
commit c5ad50b9bb
1 changed files with 4 additions and 2 deletions

View File

@ -129,10 +129,12 @@
unset($prep_statement); unset($prep_statement);
//rename the file //rename the file
rename($xml_dir.'/acl.conf.xml', $xml_dir.'/acl.conf'); if (file_exists($xml_dir.'/acl.conf.xml') {
rename($xml_dir.'/acl.conf.xml', $xml_dir.'/acl.conf');
}
} }
} }
} }
?> ?>