Minor - fixing PHP warning.
Minor - format code.
Showing at least the course title instead of empty.
Teachers can see courses in sessions when selecting the history BT#7359