mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Optimization: Email suggestions (#821)
This commit is contained in:
parent
c69faa4264
commit
9b517feca3
2 changed files with 27 additions and 12 deletions
|
|
@ -1506,19 +1506,20 @@ class PdoAddressBook
|
|||
|
||||
foreach ($aItems as $sEmail)
|
||||
{
|
||||
if ($bName)
|
||||
if ($sEmail)
|
||||
{
|
||||
$aResult[] = array($sEmail, $sNameItem);
|
||||
}
|
||||
|
||||
if ($bNick)
|
||||
{
|
||||
$aResult[] = array($sEmail, $sNickItem);
|
||||
}
|
||||
|
||||
if (!$bName && !$bNick)
|
||||
{
|
||||
$aResult[] = array($sEmail, '');
|
||||
if ($bName)
|
||||
{
|
||||
$aResult[] = array($sEmail, $sNameItem);
|
||||
}
|
||||
else if ($bNick)
|
||||
{
|
||||
$aResult[] = array($sEmail, $sNickItem);
|
||||
}
|
||||
else
|
||||
{
|
||||
$aResult[] = array($sEmail, '');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue