mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 15:10:05 +01:00
MDL-78242 roles: consistently check course contact config.
This commit is contained in:
parent
063ffc8073
commit
69a888cec3
@ -900,7 +900,7 @@ class core_course_category implements renderable, cacheable_object, IteratorAggr
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user