Skip to content
Snippets Groups Projects
Commit e8bb0bd3 authored by Tim Schroeder's avatar Tim Schroeder
Browse files

Merge branch 'fixed-error-when-only-updating-but-not-adding-appointments' into 'testing'

fixed error when only updating but not adding appointments

See merge request moodle_l2p/local_rwth_sd_sync!186
parents 56a369b5 f37df36e
No related branches found
No related tags found
No related merge requests found
Pipeline #908738 failed
......@@ -1288,7 +1288,11 @@ class sdapi {
}
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...');
......@@ -1339,7 +1343,11 @@ class sdapi {
}
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...');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment