Fix a bug with T1643
Summary: The construct `count(x == 0)` should be `count(x) == 0`. This causes a concrete problem because `count(0)` is 1. Test Plan: eyeballed it~ Reviewers: btrahan, vrana, klimek Reviewed By: klimek CC: aran Maniphest Tasks: T1643 Differential Revision: https://secure.phabricator.com/D4060
This commit is contained in:
@@ -73,8 +73,8 @@ abstract class PhabricatorMailReplyHandler {
|
|||||||
* since this code is running and everything.
|
* since this code is running and everything.
|
||||||
*/
|
*/
|
||||||
private function shouldSendErrorEmail(PhabricatorMetaMTAReceivedMail $mail) {
|
private function shouldSendErrorEmail(PhabricatorMetaMTAReceivedMail $mail) {
|
||||||
return count($mail->getToAddresses() == 1) &&
|
return (count($mail->getToAddresses()) == 1) &&
|
||||||
count($mail->getCCAddresses() == 0);
|
(count($mail->getCCAddresses()) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function sendErrorEmail($error,
|
private function sendErrorEmail($error,
|
||||||
|
|||||||
Reference in New Issue
Block a user