MDL-9218 Processing of role assignments produces PHP notices; merged from MOODLE_18_STABLE

This commit is contained in:
skodak 2007-04-05 08:43:06 +00:00
parent c0a2c36157
commit 4db9bff7ec

View File

@ -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 = '';