MDL-39876 Change get_record('course') calls to get_course
MDL-39876 update_course_record function to update global COURSE