]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10089 - Cannot delete questions from question bank - Thanks to Adriane Boyd for...
authortjhunt <tjhunt>
Tue, 12 Jun 2007 11:13:49 +0000 (11:13 +0000)
committertjhunt <tjhunt>
Tue, 12 Jun 2007 11:13:49 +0000 (11:13 +0000)
question/editlib.php

index d5fd8cd68f8a982bcf2518215b14d6dab227cfc7..a33cf52879bdb99e66c3b81bbf9ad921cd8002da 100644 (file)
@@ -401,7 +401,7 @@ function question_list($course, $pageurl, $categoryid, $cm = null,
  * @param moodle_url $pageurl object representing this pages url.
  */
 function question_showbank($pageurl, $cm, $page, $perpage, $sortorder, $sortorderdecoded, $cat, $recurse, $showhidden, $showquestiontext){  
-    global $COURSE;  
+    global $COURSE, $USER;  
 
 /// Now, check for commands on this page and modify variables as necessary
     if (isset($_REQUEST['move']) and confirm_sesskey()) { /// Move selected questions to new category