mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Replaced 'operator_get_all' and 'get_operators_from_adjacent_groups' functions by 'get_operators_list' function
This commit is contained in:
parent
00fd2b796c
commit
1681690d27
@ -370,7 +370,8 @@ function setup_redirect_links($threadid, $operator, $token)
|
|||||||
|
|
||||||
$operator_in_isolation = in_isolation($operator);
|
$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);
|
$operatorscount = count($operators);
|
||||||
|
|
||||||
$link = connect();
|
$link = connect();
|
||||||
|
@ -155,7 +155,9 @@ function print_operators($operator)
|
|||||||
{
|
{
|
||||||
global $webim_encoding, $settings;
|
global $webim_encoding, $settings;
|
||||||
echo "<operators>";
|
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) {
|
foreach ($operators as $operator) {
|
||||||
if (!operator_is_online($operator))
|
if (!operator_is_online($operator))
|
||||||
|
Loading…
Reference in New Issue
Block a user