Minor - format code.
Fixing work counter see BT#8958
Minor - format code
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19