skip saving the gateway xml if the directory is not set.

This commit is contained in:
Mark Crane 2014-03-22 01:12:31 +00:00
parent e1c991d6ea
commit 38d0614665
1 changed files with 5 additions and 0 deletions

View File

@ -1770,6 +1770,11 @@ function filename_safe($filename) {
function save_gateway_xml() {
//skip saving the gateway xml if the directory is not set
if (strlen($_SESSION['switch']['sip_profiles']['dir']) == 0) {
return;
}
//declare the global variables
global $db, $domain_uuid, $config;