MDL-32727 - quiz: fix incorrect variable name in upgrade
authorDan Poltawski <dan@moodle.com>
Fri, 18 May 2012 07:08:07 +0000 (15:08 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 18 May 2012 07:08:07 +0000 (15:08 +0800)
mod/quiz/db/upgrade.php

index 2861328..d3a8e72 100644 (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;