Minor - fixing PHP notice.
Fixing query see BT#7560
Minor - removing whitespaces.
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19