Commit 9c8f2d96 authored by fago's avatar fago

#127997 fixed buddylist_get_groups returning not everyone's groups

parent c6ad82fc
......@@ -1162,7 +1162,7 @@ function buddylist_get_buddy_groups($uid, $buddy = NULL) {
$result = db_query("SELECT bg.label_id, bg.label, bg.visible FROM {buddylist_groups} bg INNER JOIN {buddylist_buddy_group} bbg ON bbg.uid = bg.uid WHERE bbg.uid = %d AND bg.label_id = bbg.label_id AND bbg.buddy = %d ", $uid, $buddy);
}
else {
$result = db_query("SELECT * FROM {buddylist_groups} ", $uid);
$result = db_query("SELECT * FROM {buddylist_groups} WHERE uid=%d", $uid);
}
$buddy_groups = array();
while ($row = db_fetch_array($result)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment