$active != 0 ? "$webimroot/operator/group.php?gid=$gid" : "", getlocal("page_group.tab.members") => $active != 1 ? "$webimroot/operator/groupmembers.php?gid=$gid" : "", ); } else { $page['tabs'] = array(); } } function get_operator_groupslist($operatorid, $link) { global $settings, $mysqlprefix; if ($settings['enablegroups'] == '1') { $groupids = array(0); $allgroups = select_multi_assoc("select groupid from ${mysqlprefix}chatgroupoperator where operatorid = $operatorid order by groupid", $link); foreach ($allgroups as $g) { $groupids[] = $g['groupid']; } return implode(",", $groupids); } else { return ""; } } ?>