mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-9218 Processing of role assignments produces PHP notices; merged from MOODLE_18_STABLE
This commit is contained in:
parent
c0a2c36157
commit
4db9bff7ec
@ -2032,7 +2032,7 @@ function sync_metacourse($course) {
|
||||
}
|
||||
|
||||
// Get a list of roles that should not be synced.
|
||||
if ($CFG->nonmetacoursesyncroleids) {
|
||||
if (!empty($CFG->nonmetacoursesyncroleids)) {
|
||||
$roleexclusions = 'ra.roleid NOT IN (' . $CFG->nonmetacoursesyncroleids . ') AND';
|
||||
} else {
|
||||
$roleexclusions = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user