From c3438ec3aea04424caecb3b52e8b277b1d7d449c Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 30 Jun 2023 18:52:02 +0000 Subject: [PATCH] Fax - Edit: Fix issue with Authorized Senders. --- app/fax/fax_edit.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index 76f01ab3d4..ab765f595b 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -1055,11 +1055,15 @@ echo " "; echo " "; echo "
"; - if (!empty($fax_email_outbound_authorized_senders)) { - $senders = substr_count($fax_email_outbound_authorized_senders, ',') > 0 ? explode(',', $fax_email_outbound_authorized_senders) : $fax_email_outbound_authorized_senders; + if (substr_count($fax_email_outbound_authorized_senders, ',') > 0) { + $senders = explode(',', $fax_email_outbound_authorized_senders); + } + else { + $senders[] = $fax_email_outbound_authorized_senders; + } } - $senders[] = ''; // empty one + $senders[] = ''; // add empty field foreach ($senders as $sender_num => $sender) { echo " ".(sizeof($senders) > 0 && $sender_num < (sizeof($senders) - 1) ? "
" : null); }