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 "
| ";
-
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); } |