commit 23a315fae4982de5617ca4c755fc4341c5078b5a Author: Ray Hernandez Date: Wed Sep 2 11:13:51 2015 -0400 Change course_modinfo to allow modules with name of '0' diff --git a/lib/modinfolib.php b/lib/modinfolib.php index e8a3b9f..9733ec7 100644 --- a/lib/modinfolib.php +++ b/lib/modinfolib.php @@ -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 (empty($mod->name)) { + if (empty($mod->name) && $mod->name !== '0') { // something is wrong here continue; }