Commit 1c544b57 authored by Penny Leach's avatar Penny Leach

activity_get_users: add missing aic.value and h.appname to group by

parent a3d82f91
......@@ -124,7 +124,7 @@ function activity_get_users($activitytype, $userids=null, $userobjs=null, $admin
$sql .= '
GROUP BY
u.id, u.username, u.firstname, u.lastname, u.preferredname, u.email, u.admin, u.staff,
p.method, ap.value
p.method, ap.value, aic.value, h.appname
HAVING (u.admin = 1 OR SUM(ui.admin) > 0)';
} else if ($adminonly) {
$sql .= ' AND u.admin = 1';
......
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