Index: branches/5.3.x/core/units/users/users_item.php =================================================================== diff -u -N -r15677 -r15928 --- branches/5.3.x/core/units/users/users_item.php (.../users_item.php) (revision 15677) +++ branches/5.3.x/core/units/users/users_item.php (.../users_item.php) (revision 15928) @@ -1,6 +1,6 @@ GetID() . ') AND ( (MembershipExpires IS NULL) OR (MembershipExpires >= ' . adodb_mktime() . ') ) + WHERE (PortalUserId = ' . $this->GetID() . ') AND ( (MembershipExpires IS NULL) OR (MembershipExpires >= ' . time() . ') ) ORDER BY IF(GroupId = ' . $this->GetDBField('PrimaryGroupId') . ', 1, 0) DESC'; $groups = $this->Conn->GetCol($sql);