From eeba64d02e7d606d84fb0b6fec6fb1d42d890645 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 18 May 2012 15:08:07 +0800 Subject: [PATCH] MDL-32727 - quiz: fix incorrect variable name in upgrade --- mod/quiz/db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/db/upgrade.php b/mod/quiz/db/upgrade.php index 2861328df6d..d3a8e72c382 100644 --- a/mod/quiz/db/upgrade.php +++ b/mod/quiz/db/upgrade.php @@ -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;