mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'w04_MDL-31176_m23_groupcontext' of git://github.com/skodak/moodle
This commit is contained in:
commit
72efa49721
@ -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