diff --git a/lib/accesslib.php b/lib/accesslib.php index 8c7c52aefd9..bd400e4e351 100644 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -3823,7 +3823,6 @@ function get_user_capability_course($capability, $userid = null, $doanything = t } $contextlimitsql = 'WHERE' . $contextlimitsql; - unset($root); } // Convert fields list and ordering