Format code, fixing PHP warnings, removing old comments.
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19
Should fix #7179