MDL-62383 privacy: Close recordset in contextlist::add_from_sql()

This commit is contained in:
Jun Pataleta
2018-05-10 09:56:48 +08:00
parent f4fb0b93ce
commit 569e2aae3b
@@ -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));