Test the 'All' permission with Teams.
Add Javascript that makes sure that if the 'All' option is selected, no other options are selected.
Fixed PHP warning.