From 06384f5f876c833676d99bb3558b210ff94ef623 Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Fri, 16 Nov 2012 06:56:44 -0800 Subject: [PATCH] fix mail handling error -- return empty array if we have no $addresses Test Plan: pushing it live to test --- .../metamta/storage/PhabricatorMetaMTAReceivedMail.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php index 85fba7c22a..1c5d300ba3 100644 --- a/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php +++ b/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php @@ -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');