Robbo
Well-known member
I don't know how this bug came about after installing one of my add-ons, probably an issue on my end mainly. However adding this little fix would be for the best anyway for conflicting add-ons (ones that have the same admin permission ID).
In XenForo_Model_Admin line 287, wrapping the $newPermissions with array_unique() so if there is a duplicate it doesn't throw a SQL duplicate key error.
In XenForo_Model_Admin line 287, wrapping the $newPermissions with array_unique() so if there is a duplicate it doesn't throw a SQL duplicate key error.