Skip to content

Commit

Permalink
Fix mistake in earlier commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Nov 26, 2014
1 parent 949c8ea commit 6b9ce4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LdapInterop/UserMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private function getEmailAddressForLdapUser($ldapUser, $login)
$email = $this->getLdapUserField($ldapUser, $this->ldapMailField);
if (empty($email)) { // a valid email is needed to create a new user
$email = $login;
if (strpos($email, '@') !== false) {
if (strpos($email, '@') === false) {
$email .= $this->userEmailSuffix;
}
}
Expand Down

0 comments on commit 6b9ce4b

Please sign in to comment.