Skip to content

Commit

Permalink
(ldap) fix crashreport
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Nov 10, 2016
1 parent a8bcef6 commit c8c7e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php
Expand Up @@ -272,7 +272,7 @@ public function searchUsers($username, $userNameAttribute, $extendedQuery = null
foreach (array($userNameAttribute, "name") as $ldapAttr) {
if (isset($searchResults[$i][$ldapAttr]) && $searchResults[$i][$ldapAttr]['count'] > 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']);
break;
}
Expand Down

0 comments on commit c8c7e36

Please sign in to comment.