Index: moodle/mod/lamslesson/lib.php =================================================================== diff -u -rbb31283092c745d83ddc0cb528d2c05f890c7870 -r195c919f7206332ce1522196c8ac509c3ae128ab --- moodle/mod/lamslesson/lib.php (.../lib.php) (revision bb31283092c745d83ddc0cb528d2c05f890c7870) +++ moodle/mod/lamslesson/lib.php (.../lib.php) (revision 195c919f7206332ce1522196c8ac509c3ae128ab) @@ -769,7 +769,7 @@ } // we are looking for all users assigned in this context or higher - if ($usercontexts = get_parent_contexts($context)) { + if ($usercontexts = $context->get_parent_context_ids($context)) { $listofcontexts = '('.implode(',', $usercontexts).')'; } else { $sitecontext = get_context_instance(CONTEXT_SYSTEM);