Solve bug #7208

https://support.chamilo.org/issues/7208