From: paca70 Date: Wed, 13 Oct 2004 06:50:13 +0000 (+0000) Subject: Return null in case creators are not defined X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=911aba7dd85a7429d4add718690d6cbfd3b53cc1;p=moodle.git Return null in case creators are not defined --- diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index e4b5c79de4..100733ed41 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);