Fixing PHP warnings.
Fixing PHP warnings.
Fixing remove_XSS that always has ANONYMOUS even if you're in course.

Now the default value of $user_status is empty, the status is checked
depending of the api_is_allowed_to_edit() function See BT#7311