From 1681690d274bed6fa8562c59387b398d567cf277 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 15 Mar 2012 22:07:09 +0000 Subject: [PATCH] Replaced 'operator_get_all' and 'get_operators_from_adjacent_groups' functions by 'get_operators_list' function --- src/messenger/webim/libs/operator.php | 3 ++- src/messenger/webim/operator/update.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/messenger/webim/libs/operator.php b/src/messenger/webim/libs/operator.php index 0589ede7..3fe9d2ae 100755 --- a/src/messenger/webim/libs/operator.php +++ b/src/messenger/webim/libs/operator.php @@ -370,7 +370,8 @@ function setup_redirect_links($threadid, $operator, $token) $operator_in_isolation = in_isolation($operator); - $operators = $operator_in_isolation?get_operators_from_adjacent_groups($operator):operator_get_all(); + $list_options = $operator_in_isolation?array('isolated_operator_id' => $operator['operatorid']):array(); + $operators = get_operators_list($list_options); $operatorscount = count($operators); $link = connect(); diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php index 1b7b65cb..10424b9b 100644 --- a/src/messenger/webim/operator/update.php +++ b/src/messenger/webim/operator/update.php @@ -155,7 +155,9 @@ function print_operators($operator) { global $webim_encoding, $settings; echo ""; - $operators = in_isolation($operator)?get_operators_from_adjacent_groups($operator):operator_get_all(); + + $list_options = in_isolation($operator)?array('isolated_operator_id' => $operator['operatorid']):array(); + $operators = get_operators_list($list_options); foreach ($operators as $operator) { if (!operator_is_online($operator))