summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Ziegler2007-04-28 17:01:07 (GMT)
committerWolfgang Ziegler2007-04-28 17:01:07 (GMT)
commit9c8f2d96cd8412b2eabdfc1711b72bfac1d322ce (patch)
tree8d2814370ebd4d955484e00175f2910144c8e763
parentc6ad82fc915b553bf27a06e0136c299ac02643de (diff)
#127997 fixed buddylist_get_groups returning not everyone's groups
-rw-r--r--buddylist.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/buddylist.module b/buddylist.module
index f17b297..90ce921 100644
--- a/buddylist.module
+++ b/buddylist.module
@@ -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)) {