Merge branch 'MDL-62383-master' of git://github.com/junpataleta/moodle
authorJake Dallimore <jake@moodle.com>
Thu, 10 May 2018 02:03:32 +0000 (10:03 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 10 May 2018 02:03:32 +0000 (10:03 +0800)
privacy/classes/local/request/contextlist.php

index 7e6461c..c5b9cb1 100644 (file)
@@ -55,6 +55,7 @@ class contextlist extends contextlist_base {
             $contextids[] = $context->ctxid;
             \context_helper::preload_from_record($context);
         }
+        $contexts->close();
 
         $this->set_contextids(array_merge($this->get_contextids(), $contextids));