Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14037806
D19028.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19028.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D19028: Only add the Mail "STAMPS" body section if there are stamps
Attached
Detach File
Event Timeline
Log In to Comment