diff --git a/app/basic_operator_panel/index.php b/app/basic_operator_panel/index.php index 2d4b243cb0..9502b0cfe1 100644 --- a/app/basic_operator_panel/index.php +++ b/app/basic_operator_panel/index.php @@ -98,7 +98,7 @@ //update the user_status if (is_uuid($call_center_agent_uuid)) { $esl = event_socket::create(); - $switch_cmd .= "callcenter_config agent set status ".$call_center_agent_uuid." '".$user_status."'"; + $switch_cmd = "callcenter_config agent set status ".$call_center_agent_uuid." '".$user_status."'"; $switch_result = event_socket::api($switch_cmd); } diff --git a/app/basic_operator_panel/resources/content.php b/app/basic_operator_panel/resources/content.php index 5eeecd32de..0d234191f7 100644 --- a/app/basic_operator_panel/resources/content.php +++ b/app/basic_operator_panel/resources/content.php @@ -229,7 +229,7 @@ if (is_array($activity)) { unset($block); //filter by group, if defined - if ($_REQUEST['group'] != '' && substr_count($ext['call_group'], $_REQUEST['group']) == 0 && !in_array($extension, $_SESSION['user']['extensions'])) { continue; } + if ($_REQUEST['group'] != '' && substr_count($ext['call_group'] ?? '', $_REQUEST['group']) == 0 && !in_array($extension, $_SESSION['user']['extensions'])) { continue; } //filter by extension or name, if defined if (!empty($_REQUEST['filter'])) { @@ -355,7 +355,7 @@ if (is_array($activity)) { if ($ext['uuid'] == $ext['call_uuid'] && empty($ext['variable_bridge_uuid'])) { // transfer an outbound internal call $call_identifier = $activity[$call_number ?? null]['uuid'] ?? null; } - else if (($ext['variable_call_direction'] == 'outbound' || $ext['variable_call_direction'] == 'local') && $ext['variable_bridge_uuid'] != '') { // transfer an outbound external call + else if ((!empty($ext['variable_call_direction']) && ($ext['variable_call_direction'] == 'outbound' || $ext['variable_call_direction'] == 'local')) && !empty($ext['variable_bridge_uuid'])) { // transfer an outbound external call $call_identifier = $ext['variable_bridge_uuid']; } else { @@ -436,7 +436,7 @@ if (is_array($activity)) { } //build the list of extensions - $block = "
| \n"; |