diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index e4b5c79de4f..100733ed41e 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -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);