From: martinlanghoff Date: Tue, 30 May 2006 00:44:21 +0000 (+0000) Subject: auth/ldap: better handling of empty values from ldap X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9aad45429955775ede727f7f038847f2704681ee;p=moodle.git auth/ldap: better handling of empty values from ldap --- 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; + } } }