From 9aad45429955775ede727f7f038847f2704681ee Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Tue, 30 May 2006 00:44:21 +0000 Subject: [PATCH] auth/ldap: better handling of empty values from ldap --- auth/ldap/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index eb554e1a82..49149a1357 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -144,7 +144,9 @@ function auth_get_userinfo($username){ $ldapval = $newval; } } - $result[$key] = $ldapval; + if (!is_null($ldapval)) { + $result[$key] = $ldapval; + } } } -- 2.39.5