diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 5c4efbb568..7e1623b005 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -219,8 +219,9 @@ //get the application and data $action_array = explode(":",$queue_timeout_action); - $queue_timeout_application = $action_array[0]; - $queue_timeout_data = substr($queue_timeout_action, strlen($action_array[0])+1, strlen($queue_timeout_application)); + $queue_timeout_app = $action_array[0]; + unset($action_array[0]); + $queue_timeout_data = implode($action_array); //build the xml dialplan $dialplan_xml = "\n"; @@ -237,7 +238,7 @@ $dialplan_xml .= " \n"; } $dialplan_xml .= " \n"; - $dialplan_xml .= " \n"; + $dialplan_xml .= " \n"; $dialplan_xml .= " \n"; $dialplan_xml .= "\n";