diff --git a/app/dialplans/dialplan_edit.php b/app/dialplans/dialplan_edit.php index 46e6f30d6b..bca23d65ec 100644 --- a/app/dialplans/dialplan_edit.php +++ b/app/dialplans/dialplan_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-2021 + Portions created by the Initial Developer are Copyright (C) 2008-2023 the Initial Developer. All Rights Reserved. Contributor(s): @@ -912,7 +912,7 @@ // split up failover bridges and get variables in statement $failover_bridges = explode('|', $dialplan_detail_data); preg_match('/^\{.*\}/', $failover_bridges[0], $bridge_vars); - $bridge_vars = $bridge_vars[0]; + $bridge_vars = $bridge_vars[0] ?? ''; // rename parse and rename each gateway foreach ($failover_bridges as $bridge_statement_exploded) {