MDL-39957 course: replaced add_to_log for hiding/showing courses