Merge branch 'MDL-27840-30' of git://github.com/danpoltawski/moodle into MOODLE_30_STABLE
This commit is contained in:
+1
-1
@@ -492,7 +492,7 @@ class course_modinfo {
|
||||
// Loop through each piece of module data, constructing it
|
||||
static $modexists = array();
|
||||
foreach ($coursemodinfo->modinfo as $mod) {
|
||||
if (strval($mod->name) === '') {
|
||||
if (!isset($mod->name) || strval($mod->name) === '') {
|
||||
// something is wrong here
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user