From: tjhunt Date: Tue, 12 Jun 2007 11:13:49 +0000 (+0000) Subject: MDL-10089 - Cannot delete questions from question bank - Thanks to Adriane Boyd for... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=da1cc34073d03eb57ef958490f951e5e807eeb88;p=moodle.git MDL-10089 - Cannot delete questions from question bank - Thanks to Adriane Boyd for the fix. --- diff --git a/question/editlib.php b/question/editlib.php index d5fd8cd68f..a33cf52879 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -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