Blocking script.
If course is not set then fire api_not_allowed() even if I'm admin.
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19