From 532e01b5c05e6bdcedcd808b19a768d9affde2ed Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 8 Dec 2015 21:59:09 -0700 Subject: [PATCH] Remove count($_SESSION["domains"]) > 1 from the as the domain name should always be part of the fax directory path. --- app/fax/fax_edit.php | 1 - app/fax/fax_send.php | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index 77a473567a..8a23a3cf4c 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -931,7 +931,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo ""; echo "
"; echo "\n"; - } echo ""; diff --git a/app/fax/fax_send.php b/app/fax/fax_send.php index 12104e4e81..b016ba0bfd 100644 --- a/app/fax/fax_send.php +++ b/app/fax/fax_send.php @@ -213,7 +213,7 @@ function fax_split_dtmf(&$fax_number, &$fax_dtmf){ mkdir($_SESSION['switch']['storage']['dir'].'/fax'); chmod($_SESSION['switch']['storage']['dir'].'/fax',0774); } - if (count($_SESSION["domains"]) > 1 && !is_dir($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name'])) { + if (!is_dir($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name'])) { mkdir($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name']); chmod($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name'],0774); } @@ -238,7 +238,6 @@ function fax_split_dtmf(&$fax_number, &$fax_dtmf){ //clear file status cache clearstatcache(); - //send the fax $continue = false;