From 16c20c92fe716af640b764b2a61d6b187af240b7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 2 Jul 2012 07:17:56 -0700 Subject: [PATCH] Minor, fix an issue where we may fail to select a translation for mail. --- src/applications/metamta/storage/PhabricatorMetaMTAMail.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php index d169febab2..c83b3c9f44 100644 --- a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php +++ b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php @@ -138,6 +138,11 @@ final class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO { } $return = $translation; } + + if (!$return) { + $return = $default_translation; + } + return $return; }