Page MenuHomePhabricator

D13526.diff
No OneTemporary

D13526.diff

diff --git a/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php b/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
--- a/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
+++ b/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
@@ -115,20 +115,30 @@
}
public function addPlaintextSection($header, $text) {
- $this->sections[] = $header."\n".$this->indent($text);
+ if (empty($header)) {
+ $this->sections[] = $text;
+ } else {
+ $this->sections[] = $header."\n".$this->indent($text);
+ }
return $this;
}
public function addHTMLSection($header, $html_fragment) {
- $this->htmlSections[] = array(
- phutil_tag(
- 'div',
- array(),
- array(
- phutil_tag('strong', array(), $header),
- phutil_tag('div', array(), $html_fragment),
- )),
- );
+ if (empty($header)) {
+ $this->htmlSections[] = array(
+ phutil_tag('div', array(), $html_fragment),
+ );
+ } else {
+ $this->htmlSections[] = array(
+ phutil_tag(
+ 'div',
+ array(),
+ array(
+ phutil_tag('strong', array(), $header),
+ phutil_tag('div', array(), $html_fragment),
+ )),
+ );
+ }
return $this;
}

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 20, 11:21 AM (2 d, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7722542
Default Alt Text
D13526.diff (1 KB)

Event Timeline