[ticket/229] Display all groups in who is online module

B3P-229
This commit is contained in:
Marc Alexander
2014-04-06 01:13:42 +02:00
parent eb5961564e
commit 2ea6bfa6fb

View File

@@ -95,7 +95,7 @@ class whois_online extends module_base
{
$sql = 'SELECT group_id, group_name, group_colour, group_type
FROM ' . GROUPS_TABLE . '
WHERE group_legend = 1
WHERE group_legend > 0
ORDER BY group_name ASC';
}
else
@@ -108,7 +108,7 @@ class whois_online extends module_base
AND ug.user_id = ' . $this->user->data['user_id'] . '
AND ug.user_pending = 0
)
WHERE g.group_legend = 1
WHERE g.group_legend > 0
AND (g.group_type <> ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $this->user->data['user_id'] . ')
ORDER BY g.group_name ASC';
}