mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-31176 add missing global $DB when looking for group related context in calendar
This commit is contained in:
parent
f6b4ec2b4a
commit
025d82e0ed
@ -1796,7 +1796,7 @@ class calendar_event {
|
||||
* @return stdClass
|
||||
*/
|
||||
protected function calculate_context(stdClass $data) {
|
||||
global $USER;
|
||||
global $USER, $DB;
|
||||
|
||||
$context = null;
|
||||
if (isset($data->courseid) && $data->courseid > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user