Fix closure warnings (#2087)

This commit is contained in:
RainLoop Team 2021-05-06 11:00:52 +03:00
parent 90e41635ed
commit 49d9093e44
4 changed files with 19 additions and 38 deletions

View file

@ -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))
{