Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13969530
D19028.id45628.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.id45628.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
Fri, Oct 18, 2:59 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6724634
Default Alt Text
D19028.id45628.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