]> git.mjollnir.org Git - moodle.git/commitdiff
quiz editing: MDL-17455 fix missing global. Oops.
authortjhunt <tjhunt>
Wed, 11 Feb 2009 10:35:41 +0000 (10:35 +0000)
committertjhunt <tjhunt>
Wed, 11 Feb 2009 10:35:41 +0000 (10:35 +0000)
mod/quiz/editlib.php

index 29c275ee6703fe47408440acf0a9c7e395cb925b..adf449099014d127e89f31e75de505876a02438f 100644 (file)
@@ -802,7 +802,7 @@ function quiz_print_singlequestion_reordertool($question, $returnurl, $quiz){
  */
 
 function quiz_print_randomquestion_reordertool(&$question, &$pageurl, &$quiz){
-    global $DB;
+    global $DB, $QTYPES;
 
     // Load the category, and the number of available questions in it.
     if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {