From 1eae3a70e9f4a874f2d65273f47a3b5c9e0a02be Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 2 Jun 2023 00:09:59 +0000 Subject: [PATCH] Call Flows - Edit: Updates for PHP 8.1 --- app/call_flows/call_flow_edit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index 2e6495c927..09fc0df09a 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2019 + Portions created by the Initial Developer are Copyright (C) 2008-2023 the Initial Developer. All Rights Reserved. Contributor(s): @@ -73,8 +73,8 @@ if (!empty($_POST)) { //set the variables from the http values - $call_flow_uuid = $_POST["call_flow_uuid"]; - $dialplan_uuid = $_POST["dialplan_uuid"]; + $call_flow_uuid = $_POST["call_flow_uuid"] ?? null; + $dialplan_uuid = $_POST["dialplan_uuid"] ?? null; $call_flow_name = $_POST["call_flow_name"]; $call_flow_extension = $_POST["call_flow_extension"]; $call_flow_feature_code = $_POST["call_flow_feature_code"]; @@ -130,8 +130,8 @@ //if (empty($call_flow_pin_number)) { $msg .= $text['message-required']." ".$text['label-call_flow_pin_number']."
\n"; } //if (empty($call_flow_label)) { $msg .= $text['message-required']." ".$text['label-call_flow_label']."
\n"; } //if (empty($call_flow_sound)) { $msg .= $text['message-required']." ".$text['label-call_flow_sound']."
\n"; } - if (empty($call_flow_app)) { $msg .= $text['message-required']." ".$text['label-call_flow_app']."
\n"; } - if (empty($call_flow_data)) { $msg .= $text['message-required']." ".$text['label-call_flow_data']."
\n"; } + if (empty($call_flow_app)) { $msg .= $text['message-required']." ".($text['label-call_flow_app'] ?? '')."
\n"; } + if (empty($call_flow_data)) { $msg .= $text['message-required']." ".($text['label-call_flow_data'] ?? '')."
\n"; } //if (empty($call_flow_alternate_label)) { $msg .= $text['message-required']." ".$text['label-call_flow_alternate_label']."
\n"; } //if (empty($call_flow_alternate_sound)) { $msg .= $text['message-required']." ".$text['label-call_flow_alternate_sound']."
\n"; } //if (empty($call_flow_alternate_app)) { $msg .= $text['message-required']." ".$text['label-call_flow_alternate_app']."
\n"; }