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