• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Admin Permissions bug

Robbo

Well-known member
#1
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.