06-03-2017, 06:27 PM
It looks like $master_array needs to be declared as a global, like $user is at the start of the function. I can't test it because I've replaced the permissions with my own system, but let me know if that doesn't fix it!