Solved rebuildUserGroupRelations & group id = 0

This topic has been solved
X

Xon

Guest
I recently ran into a case where a customer's forum had a 0 in xf_user.secondary_group_ids (specifically just '0' as the value). This has resulting in rows of 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...