Skip to content
Snippets Groups Projects
Commit 5cd93788 authored by Peter Schartner's avatar Peter Schartner
Browse files

Merge branch 'integration' into 'production'

Integration

See merge request moodle_l2p/local_rwth_sd_sync!188
parents b4f2fe9b 2694a880
Branches production
No related tags found
No related merge requests found
Pipeline #908740 failed
...@@ -1288,7 +1288,11 @@ class sdapi { ...@@ -1288,7 +1288,11 @@ class sdapi {
} }
private function update_course_appointments($trace, $updatedappointments) { private function update_course_appointments($trace, $updatedappointments) {
global $DB; global $CFG, $DB;
if (!$updatedappointments) {
return 0;
}
require_once($CFG->dirroot . '/calendar/lib.php');
$trace->output('Starting course appointment update...'); $trace->output('Starting course appointment update...');
...@@ -1339,7 +1343,11 @@ class sdapi { ...@@ -1339,7 +1343,11 @@ class sdapi {
} }
private function update_group_appointments($trace, $updatedappointments) { private function update_group_appointments($trace, $updatedappointments) {
global $DB; global $CFG, $DB;
if (!$updatedappointments) {
return 0;
}
require_once($CFG->dirroot . '/calendar/lib.php');
$trace->output('Starting group appointment update...'); $trace->output('Starting group appointment update...');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment