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 3153315da2
commit 96c5094dc1

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;