From ef43a2c13b8e28e2d5a2b43e37e9b38f7c4d7b50 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 25 May 2019 23:13:37 -0600 Subject: [PATCH] Update content.php --- .../resources/content.php | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/basic_operator_panel/resources/content.php b/app/basic_operator_panel/resources/content.php index 95f6b11475..e309678431 100644 --- a/app/basic_operator_panel/resources/content.php +++ b/app/basic_operator_panel/resources/content.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-2016 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -28,7 +28,6 @@ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; - require_once "./resources/functions/get_call_activity.php"; //check permissions if (permission_exists('operator_panel_view')) { @@ -44,17 +43,20 @@ $text = $language->get(); //get the call activity - $activity = get_call_activity(); - if (is_array($activity)) foreach ($activity as $extension => $fields) { - if (substr_count($fields['call_group'], ',')) { - $tmp = explode(',', $fields['call_group']); - if (is_array($tmp)) foreach ($tmp as $tmp_index => $tmp_value) { - if (trim($tmp_value) == '') { unset($tmp[$tmp_index]); } - else { $groups[] = $tmp_value; } + $operator_panel = new basic_operator_panel; + $activity = $operator_panel->call_activity(); + if (is_array($activity)) { + foreach ($activity as $extension => $fields) { + if (substr_count($fields['call_group'], ',')) { + $tmp = explode(',', $fields['call_group']); + if (is_array($tmp)) foreach ($tmp as $tmp_index => $tmp_value) { + if (trim($tmp_value) == '') { unset($tmp[$tmp_index]); } + else { $groups[] = $tmp_value; } + } + } + else if ($fields['call_group'] != '') { + $groups[] = $fields['call_group']; } - } - else if ($fields['call_group'] != '') { - $groups[] = $fields['call_group']; } } if (is_array($groups)) {