From: skodak Date: Thu, 5 Apr 2007 08:43:06 +0000 (+0000) Subject: MDL-9218 Processing of role assignments produces PHP notices; merged from MOODLE_18_S... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4db9bff7ecd8cf51465ba3be4fbe207b266c846f;p=moodle.git MDL-9218 Processing of role assignments produces PHP notices; merged from MOODLE_18_STABLE --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 7e02ee3475..b015cd8d68 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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 = '';