Skip to content

Commit

Permalink
Merge branch 'MDL-78242' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed May 23, 2023
2 parents b5c0d80 + 69a888c commit 1df51b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/classes/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ public static function role_assignment_changed($roleid, $context) {
// Trigger a purge for all caches listening for changes to category enrolment.
cache_helper::purge_by_event('changesincategoryenrolment');

if (!$CFG->coursecontact || !in_array($roleid, explode(',', $CFG->coursecontact))) {
if (empty($CFG->coursecontact) || !in_array($roleid, explode(',', $CFG->coursecontact))) {
// The role is not one of course contact roles.
return;
}
Expand Down

0 comments on commit 1df51b0

Please sign in to comment.