Merge branch 'MDL-27840-master' of git://github.com/danpoltawski/moodle

This commit is contained in:
Andrew Nicols 2016-01-12 11:45:58 +08:00 committed by Dan Poltawski
commit dc2aa7f947

View File

@ -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;
}