fix mail handling error -- return empty array if we have no $addresses
Test Plan: pushing it live to test
This commit is contained in:
@@ -60,6 +60,9 @@ final class PhabricatorMetaMTAReceivedMail extends PhabricatorMetaMTADAO {
|
||||
}
|
||||
|
||||
private function loadPHIDsFromAddresses(array $addresses) {
|
||||
if (empty($addresses)) {
|
||||
return array();
|
||||
}
|
||||
$users = id(new PhabricatorUserEmail())
|
||||
->loadAllWhere('address IN (%Ls)', $addresses);
|
||||
$user_phids = mpull($users, 'getUserPHID');
|
||||
|
||||
Reference in New Issue
Block a user