From 086189a769acabc514a57feb6a07fdeccabbbb40 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 19 Aug 2023 23:16:34 -0600 Subject: [PATCH] Use the bridge parts array --- app/bridges/bridge_edit.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/bridges/bridge_edit.php b/app/bridges/bridge_edit.php index 9d6bd985ea..fbd0c1a530 100644 --- a/app/bridges/bridge_edit.php +++ b/app/bridges/bridge_edit.php @@ -139,7 +139,7 @@ $bridge_destination = trim($bridge_base, ','); } } - + //add the variables back into the bridg_destination value if (!empty($bridge_variables)) { $variables = ''; @@ -226,10 +226,9 @@ //get the bridge_action from the bridge_destination if (!empty($bridge_destination)) { if (substr($bridge_destination, 0, 1) == '{') { - $parts = explode('}', $bridge_destination); - $bridge_destination = $parts[1]; + $bridge_parts = explode('}', $bridge_destination); } - $bridge_array = explode("/", $bridge_destination); + $bridge_array = explode("/", $bridge_parts[1]); if ($bridge_array[0] == 'sofia') { if ($bridge_array[1] == 'gateway') { $bridge_action = 'gateway';