mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
Fix closure warnings (#2087)
This commit is contained in:
parent
90e41635ed
commit
49d9093e44
4 changed files with 19 additions and 38 deletions
|
|
@ -996,11 +996,8 @@ class PdoAddressBook
|
|||
}
|
||||
|
||||
$iUserID = $this->getUserId($sEmail);
|
||||
|
||||
$aContactIds = \array_filter($aContactIds, function (&$mItem) {
|
||||
$mItem = (int) \trim($mItem);
|
||||
return 0 < $mItem;
|
||||
});
|
||||
$aContactIds = \array_map('intval', $aContactIds);
|
||||
$aContactIds = \array_filter($aContactIds);
|
||||
|
||||
if (0 === \count($aContactIds))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue