From 324f5bf94e1def0b75d7a92b368d43babf7c5b31 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 29 Jul 2014 14:55:22 +0000 Subject: [PATCH] Treat operators online even if they don't belong to any groups Fixes #51 --- src/mibew/libs/operator.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mibew/libs/operator.php b/src/mibew/libs/operator.php index 5f6b0be0..af130671 100644 --- a/src/mibew/libs/operator.php +++ b/src/mibew/libs/operator.php @@ -478,13 +478,7 @@ function has_online_operators($group_id = "") . "AND istatus = 0"; $values[':groupid'] = $group_id; } else { - if (Settings::get('enablegroups') == 1) { - $query .= ", {operatortoopgroup} " - . "WHERE {operator}.operatorid = {operatortoopgroup}.operatorid " - . "AND istatus = 0"; - } else { - $query .= " WHERE istatus = 0"; - } + $query .= " WHERE istatus = 0"; } $row = $db->query(