-
Bug
-
Resolution: Fixed
-
Minor
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-66876-master -
In this line, the context is treated as an array, but it's an object. This triggers an exception: Cannot use object of type context_module as array.
To reproduce it:
- Create an activity that isn't visible for students. Copy the id of the activity.
- Create a token for a student user in that course.
- Call the WS core_filters_get_available_in_context and pass a context with contextlevel=module and the instanceid equal to the id you copied in step 1.