mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Return null in case creators are not defined
This commit is contained in:
parent
3f6bc1f2af
commit
911aba7dd8
@ -512,7 +512,7 @@ function auth_iscreator($username=0) {
|
||||
}
|
||||
|
||||
if ((! $CFG->ldap_creators) OR (! $CFG->ldap_memberattribute)) {
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
return auth_ldap_isgroupmember($username, $CFG->ldap_creators);
|
||||
|
Loading…
x
Reference in New Issue
Block a user