From: skodak Date: Wed, 30 Apr 2008 12:24:54 +0000 (+0000) Subject: MDL-14621 fixed warning when module code missing X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3a37b3f8d56a9426c5bb7be7a69f654465a96df3;p=moodle.git MDL-14621 fixed warning when module code missing --- diff --git a/course/lib.php b/course/lib.php index 691f23ec04..7810843db4 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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)) {