mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 14:51:06 +01:00
fix mail handling error -- return empty array if we have no $addresses
Test Plan: pushing it live to test
This commit is contained in:
parent
2b00f5e8b6
commit
06384f5f87
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ final class PhabricatorMetaMTAReceivedMail extends PhabricatorMetaMTADAO {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function loadPHIDsFromAddresses(array $addresses) {
|
private function loadPHIDsFromAddresses(array $addresses) {
|
||||||
|
if (empty($addresses)) {
|
||||||
|
return array();
|
||||||
|
}
|
||||||
$users = id(new PhabricatorUserEmail())
|
$users = id(new PhabricatorUserEmail())
|
||||||
->loadAllWhere('address IN (%Ls)', $addresses);
|
->loadAllWhere('address IN (%Ls)', $addresses);
|
||||||
$user_phids = mpull($users, 'getUserPHID');
|
$user_phids = mpull($users, 'getUserPHID');
|
||||||
|
|
Loading…
Reference in a new issue