### Eclipse Workspace Patch 1.0 #P contriboublog Index: lib.php =================================================================== RCS file: /cvsroot/moodle/contrib/plugins/mod/oublog/Attic/lib.php,v retrieving revision 1.1.2.4 diff -u -r1.1.2.4 lib.php --- lib.php 26 Jan 2009 15:33:49 -0000 1.1.2.4 +++ lib.php 26 Mar 2009 08:46:22 -0000 @@ -552,6 +552,9 @@ INNER JOIN {$CFG->prefix}course_modules cm ON m.id=cm.module WHERE m.name='oublog'".($courseid ? " AND cm.course=$courseid" : "")); + if (!$coursemodules) { + $coursemodules = array(); + } // Display info and loop around each coursemodule if($feedback) {