From 489984a7a27ba5601ee1790c93afbd03f7bd8c9e Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Wed, 3 Oct 2007 03:16:27 +0000 Subject: [PATCH] fix for fatal error in tabs.php because of missing global var contexts. --- question/contextmoveq.php | 1 + 1 file changed, 1 insertion(+) diff --git a/question/contextmoveq.php b/question/contextmoveq.php index 660e0f8b2b..3c1161e911 100644 --- a/question/contextmoveq.php +++ b/question/contextmoveq.php @@ -44,6 +44,7 @@ if ($cmid){ } else { error('Need to pass courseid or cmid to this script.'); } +$contexts = new question_edit_contexts($thiscontext); if (!$questions = get_records_sql("SELECT q.*, c.contextid FROM {$CFG->prefix}question q, {$CFG->prefix}question_categories c WHERE q.id IN ($ids) AND c.id = q.category")) { -- 2.39.5