mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-27840-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
dc2aa7f947
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user