if(!array_key_exists($perm,$user_info['shd_permissions'])){
$user_info['shd_permissions'][$perm] = $depts[$role];
} else {
$user_info['shd_permissions'][$perm] = array_merge($user_info['shd_permissions'][$perm],$depts[$role]);
}
Page created in 0.024 seconds with 13 queries.