diff --git a/question/type/multichoice/db/upgrade.php b/question/type/multichoice/db/upgrade.php index 501af6ce8c4e6..b9ca6f3f32240 100644 --- a/question/type/multichoice/db/upgrade.php +++ b/question/type/multichoice/db/upgrade.php @@ -21,7 +21,7 @@ // before any action that may take longer time to finish. function xmldb_qtype_multichoice_upgrade($oldversion) { - global $CFG, $DB; + global $CFG, $DB, $QTYPES; $dbman = $DB->get_manager(); $result = true;