Fixed array_flip() warning when viewing a course while unenrolled.