Minor fixing PHP warning.
Adding error_log see BT#6613
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19