Skip saving the sip profile xml if the directory is not set.

This commit is contained in:
Mark Crane
2014-03-22 02:03:04 +00:00
parent eee249d52c
commit 1462863d03

View File

@@ -3020,6 +3020,11 @@ if (!function_exists('xml_cdr_conf_xml')) {
if (!function_exists('save_sip_profile_xml')) {
function save_sip_profile_xml() {
//skip saving the sip profile xml if the directory is not set
if (strlen($_SESSION['switch']['sip_profiles']['dir']) == 0) {
return;
}
//get the global variables
global $db, $domain_uuid;