Skip to content

Commit

Permalink
Issue GENI-NSF#164: Fix up only getting mail attribute from LDAP if i…
Browse files Browse the repository at this point in the history
…t is present
  • Loading branch information
ahelsing committed Jul 22, 2016
1 parent 7f28638 commit a1b2d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protected/display_accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function get_values($row)

$firstname = $row['givenname'][0];
$lastname = $row['sn'][0];
if (in_array('mail', array_keys((array)$row))) {
if (array_key_exists('mail', (array)$row)) {
$email = $row['mail'][0];
} else {
$email = "";
Expand Down

0 comments on commit a1b2d5e

Please sign in to comment.