Updateing lib/enrollib.php to remove duplicate course object loading
Merge branch 'MDL-38405-course-eventdata' of github.com:frogprincess/moodle into MDL-38405-course-eventdata