Replaced 'operator_get_all' and 'get_operators_from_adjacent_groups' functions by 'get_operators_list' function

This commit is contained in:
Dmitriy Simushev 2012-03-15 22:07:09 +00:00
parent 00fd2b796c
commit 1681690d27
2 changed files with 5 additions and 2 deletions

View File

@ -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();

View File

@ -155,7 +155,9 @@ function print_operators($operator)
{
global $webim_encoding, $settings;
echo "<operators>";
$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))