Fixing bug when downloading a work -refs #7027
merge
Merge branch '1.9.x' of github.com:chamilo/chamilo-lms into 1.9.x