mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-24 22:25:09 +03:00
Merge pull request #2079 from MiDniGG/fix/autosave-duplicate-contacts
Fix duplicate contacts on autosave for addresses with uppercase letters
This commit is contained in:
commit
e7a491b0f5
1 changed files with 1 additions and 1 deletions
|
|
@ -997,7 +997,7 @@ class PdoAddressBook
|
||||||
$sEmail = \trim($oItem->GetEmail(true));
|
$sEmail = \trim($oItem->GetEmail(true));
|
||||||
if (\strlen($sEmail)) {
|
if (\strlen($sEmail)) {
|
||||||
$aEmailsToUpdate[] = $sEmail;
|
$aEmailsToUpdate[] = $sEmail;
|
||||||
return !\in_array($sEmail, $aExists);
|
return !\in_array(\mb_strtolower($sEmail), $aExists);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue