Solves Bug#7210

Solve the bug when displaying icons in block courses
Ref Bug#7210