Attached is a patch which fixes a bug with _moodle_theme_course_obj_array(), where it checks to see if $courselist is an array instead of checking if it's populated. I've found that $courselist is always an array, but can be empty.

CommentFileSizeAuthor
empty-courselist-fix.patch414 bytessamlerner

Comments

Chris Johnson’s picture

Assigned: Unassigned » Chris Johnson

Thanks for the report and proposed patch.

Chris Johnson’s picture

Committed a fix in 8e5e04beee0f37051d838bd6a5d354bacadec36e. Will build a release shortly.

Chris Johnson’s picture

Status: Active » Fixed

Release 6.x-2.3 fixes this problem. http://drupal.org/node/1145082

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.