Skip to content
Snippets Groups Projects
Commit 0570afff authored by Eduardo Alvarez Fernandez's avatar Eduardo Alvarez Fernandez
Browse files
parents 7623225e 5252538c
Branches
Tags
No related merge requests found
......@@ -71,7 +71,8 @@ Class CERNLdapService {
protected function getEmailAddress($entry) {
$result = ldap_search($this->conn, $entry, "CN=*", array('mail'), NULL, 0);
$entries = $this->cleanUpEntry(ldap_get_entries($this->conn, $result));
return (array_key_exists('mail', $entries["$entry"])) ? $entries["$entry"]['mail'] : "";
dpm($entries, "Entries");
return (array_key_exists('mail', $entries[0])) ? $entries[0]['mail'] : "";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment