From 911aba7dd85a7429d4add718690d6cbfd3b53cc1 Mon Sep 17 00:00:00 2001 From: paca70 Date: Wed, 13 Oct 2004 06:50:13 +0000 Subject: [PATCH] Return null in case creators are not defined --- auth/ldap/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5