RSS Feed/News rebuildUserGroupRelations & group id = 0

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,681
Points
823

Reputation:

I recently ran into a case where legacy data from had a 0 in xf_user.secondary_group_ids (specifically just '0' as the value). This has resulting in xf_user_group_relation.user_group_id having the value of 0.

I've got no idea how this data got in there, but rebuildUserGroupRelations doesn't handle this edge case. This makes joining/using xf_user_group_relation difficult as it can have unexpected data in it.

Continue reading...
 
Status
Not open for further replies.
Top