From da1cc34073d03eb57ef958490f951e5e807eeb88 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 12 Jun 2007 11:13:49 +0000 Subject: [PATCH] MDL-10089 - Cannot delete questions from question bank - Thanks to Adriane Boyd for the fix. --- question/editlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5