From b7119f4f3feecf0a8ccc3b005d6e3323c70175b3 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Fri, 10 Jun 2011 09:01:41 +0200 Subject: [PATCH] MDL-22414 Exclude unsupported modules from the course contents --- backup/converter/moodle1/handlerlib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backup/converter/moodle1/handlerlib.php b/backup/converter/moodle1/handlerlib.php index 993aab72844..5c15bc279cb 100644 --- a/backup/converter/moodle1/handlerlib.php +++ b/backup/converter/moodle1/handlerlib.php @@ -826,6 +826,12 @@ class moodle1_course_outline_handler extends moodle1_xml_handler { public function process_course_module($data, $raw) { global $CFG; + // check that this type of module should be included in the mbz + $modinfo = $this->converter->get_stash_itemids('modinfo_'.$data['modulename']); + if (empty($modinfo)) { + return; + } + // add the course module into the course contents list $this->coursecontents[$data['id']] = array( 'cmid' => $data['id'],