MDL-32727 - quiz: fix incorrect variable name in upgrade

This commit is contained in:
Dan Poltawski
2012-05-18 15:08:07 +08:00
parent 5316007e08
commit eeba64d02e
+1 -1
View File
@@ -113,7 +113,7 @@ function xmldb_quiz_upgrade($oldversion) {
// Get a list of response variables that have files.
require_once($CFG->dirroot . '/question/type/questiontypebase.php');
$variables = array();
foreach (get_plugin_list('qtype') as $plugin => $path) {
foreach (get_plugin_list('qtype') as $qtypename => $path) {
$file = $path . '/questiontype.php';
if (!is_readable($file)) {
continue;