]> git.mjollnir.org Git - moodle.git/commitdiff
With appropriate error reporting, adding a label to a section of a course results...
authordwoolhead <dwoolhead>
Tue, 25 Apr 2006 11:48:39 +0000 (11:48 +0000)
committerdwoolhead <dwoolhead>
Tue, 25 Apr 2006 11:48:39 +0000 (11:48 +0000)
course/mod.php

index d5f7b5376b692f32e98fec164bb0d7b6c0b93a55..2fc900cb4f261fe4c0172916c77f5ef15c0118a5 100644 (file)
                     error("This module ($mod->modulename) has been disabled for this particular course");
                 }
 
-                if (trim($mod->name) == '') {
+                if (!isset($mod->name) || trim($mod->name) == '') {
                     $mod->name = get_string("modulename", $mod->modulename);
                 }