]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14621 fixed warning when module code missing
authorskodak <skodak>
Wed, 30 Apr 2008 12:24:54 +0000 (12:24 +0000)
committerskodak <skodak>
Wed, 30 Apr 2008 12:24:54 +0000 (12:24 +0000)
course/lib.php

index 691f23ec04a106fca6b2b153dccae824d37608bd..7810843db457312f14d737ef0ce082f0911c034a 100644 (file)
@@ -993,6 +993,10 @@ function get_array_of_activities($courseid) {
                    $modname = $mod[$seq]->mod;
                    $functionname = $modname."_get_coursemodule_info";
 
+                   if (!file_exists("$CFG->dirroot/mod/$modname/lib.php")) {
+                       continue;
+                   }
+
                    include_once("$CFG->dirroot/mod/$modname/lib.php");
 
                    if (function_exists($functionname)) {