]> git.mjollnir.org Git - moodle.git/commitdiff
Return null in case creators are not defined
authorpaca70 <paca70>
Wed, 13 Oct 2004 06:50:13 +0000 (06:50 +0000)
committerpaca70 <paca70>
Wed, 13 Oct 2004 06:50:13 +0000 (06:50 +0000)
auth/ldap/lib.php

index e4b5c79de4f269f6a84a73dd144b15d97530dd7c..100733ed41e27f5b24ed544f2b550396b3bdb819 100644 (file)
@@ -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);