MDL-31957 Course reset: Add missing global
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 23 Aug 2012 00:04:13 +0000 (02:04 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 23 Aug 2012 00:04:13 +0000 (02:04 +0200)
lib/completionlib.php

index 4f15263..c962037 100644 (file)
@@ -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',