1
0
Fork 0
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:
Bob Trahan 2012-11-16 06:56:44 -08:00
parent 2b00f5e8b6
commit 06384f5f87

View file

@ -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');