From 7f4de36ddb085387d84044185a0b970dcc98cbc2 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 23 Aug 2012 02:04:13 +0200 Subject: [PATCH] MDL-31957 Course reset: Add missing global --- lib/completionlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/completionlib.php b/lib/completionlib.php index 4f152633694..c96203790d2 100644 --- a/lib/completionlib.php +++ b/lib/completionlib.php @@ -718,7 +718,7 @@ class completion_info { * Used by course reset page. */ public function delete_all_completion_data() { - global $DB; + global $DB, $SESSION; // Delete from database. $DB->delete_records_select('course_modules_completion',