can you put var_dump($perm);
in your code prior to the case statement and post the output here? I'm going to guess either perm is not being set or is not what you expect it to be.
pietpiraat commented: good explanation, great code +1
andydeans commented: brilliant +2
ceeandcee commented: Thank you! +1
mschroeder 251 Bestower of Knowledge Team Colleague
mschroeder 251 Bestower of Knowledge Team Colleague
pritaeas commented: Useful comment, confirms my suspicion +4
mschroeder 251 Bestower of Knowledge Team Colleague