filter courses by session, result function of filtered courses,  refs #BT7011
Merge branch '1.9.x' of https://github.com/chamilo/chamilo-lms into 1.9.x