Page MenuHomePhabricator

D19028.diff
No OneTemporary

D19028.diff

diff --git a/src/applications/metamta/replyhandler/PhabricatorMailTarget.php b/src/applications/metamta/replyhandler/PhabricatorMailTarget.php
--- a/src/applications/metamta/replyhandler/PhabricatorMailTarget.php
+++ b/src/applications/metamta/replyhandler/PhabricatorMailTarget.php
@@ -66,27 +66,28 @@
if ($show_stamps) {
$stamps = $mail->getMailStamps();
-
- $body .= "\n";
- $body .= pht('STAMPS');
- $body .= "\n";
- $body .= implode(' ', $stamps);
- $body .= "\n";
-
- if ($has_html) {
- $html = array();
- $html[] = phutil_tag('strong', array(), pht('STAMPS'));
- $html[] = phutil_tag('br');
- $html[] = phutil_tag(
- 'span',
- array(
- 'style' => 'font-size: smaller; color: #92969D',
- ),
- phutil_implode_html(' ', $stamps));
- $html[] = phutil_tag('br');
- $html[] = phutil_tag('br');
- $html = phutil_tag('div', array(), $html);
- $html_body .= hsprintf('%s', $html);
+ if ($stamps) {
+ $body .= "\n";
+ $body .= pht('STAMPS');
+ $body .= "\n";
+ $body .= implode(' ', $stamps);
+ $body .= "\n";
+
+ if ($has_html) {
+ $html = array();
+ $html[] = phutil_tag('strong', array(), pht('STAMPS'));
+ $html[] = phutil_tag('br');
+ $html[] = phutil_tag(
+ 'span',
+ array(
+ 'style' => 'font-size: smaller; color: #92969D',
+ ),
+ phutil_implode_html(' ', $stamps));
+ $html[] = phutil_tag('br');
+ $html[] = phutil_tag('br');
+ $html = phutil_tag('div', array(), $html);
+ $html_body .= hsprintf('%s', $html);
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 7:18 PM (3 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6724634
Default Alt Text
D19028.diff (1 KB)

Event Timeline