Fixed calling enrol_get_my_courses function