Fix general reports, teacher summary report and optimize a query in sessionmanager.lib.php -refs BT#8232
Merge branch '8232' of github.com:DeEvo/chamilo-lms-utp into 8232
Solve Bug
add function to get tags
Return the origin file

(cherry picked from commit eb6e1b92e62ba62124cf26f29654197c4f7c1b66)

Conflicts:
	main/work/work.lib.php