From d6dc5519d4cb2dd905c26b92d826c979108ddb7a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 20 Sep 2018 00:52:53 -0400 Subject: [PATCH] Update fax_send.php --- app/fax/fax_send.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/fax/fax_send.php b/app/fax/fax_send.php index 9316882ada..f903a7cc3d 100644 --- a/app/fax/fax_send.php +++ b/app/fax/fax_send.php @@ -788,7 +788,7 @@ if (!function_exists('fax_split_dtmf')) { } fclose($fp); } - else{ // enqueue + else { // enqueue $wav_file = ''; //! @todo add custom message $response = fax_enqueue($fax_uuid, $fax_file, $wav_file, $mailto_address, $fax_uri, $fax_dtmf, $dial_string); } @@ -809,7 +809,7 @@ if (!function_exists('fax_split_dtmf')) { if (!$included) { //redirect the browser message::add($response, 'default'); - if (permission_exists('fax_active_view')) { + if (isset($_SESSION['fax']['send_mode']['text']) && $_SESSION['fax']['send_mode']['text'] == 'queue') { header("Location: fax_active.php?id=".$fax_uuid); } else {