Commit c8c7e364 authored by Ad Schellevis's avatar Ad Schellevis

(ldap) fix crashreport

parent a8bcef6b
...@@ -272,7 +272,7 @@ class LDAP implements IAuthConnector ...@@ -272,7 +272,7 @@ class LDAP implements IAuthConnector
foreach (array($userNameAttribute, "name") as $ldapAttr) { foreach (array($userNameAttribute, "name") as $ldapAttr) {
if (isset($searchResults[$i][$ldapAttr]) && $searchResults[$i][$ldapAttr]['count'] > 0) { if (isset($searchResults[$i][$ldapAttr]) && $searchResults[$i][$ldapAttr]['count'] > 0) {
$result[] = array("name" => $searchResults[$i][$ldapAttr][0] $result[] = array("name" => $searchResults[$i][$ldapAttr][0]
, "fullname" => $searchResults[$i]['name'][0] , "fullname" => !empty($searchResults[$i]['name'][0]) ? $searchResults[$i]['name'][0] : ""
, "dn" => $searchResults[$i]['dn']); , "dn" => $searchResults[$i]['dn']);
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment