mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
do not add html part if body doesn't exists
This commit is contained in:
parent
d9653e182f
commit
f9c6139bda
|
@ -133,6 +133,7 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
|
||||||
}
|
}
|
||||||
|
|
||||||
$bodyhtml = '';
|
$bodyhtml = '';
|
||||||
|
if(isset($params['__body_html__']) || getMLText($messagekey.'_html')) {
|
||||||
if(!isset($params['__skip_header__']) || !$params['__skip_header__']) {
|
if(!isset($params['__skip_header__']) || !$params['__skip_header__']) {
|
||||||
if(!isset($params['__header_html__']))
|
if(!isset($params['__header_html__']))
|
||||||
$bodyhtml .= getMLText("email_header_html", $params, "", $lang)."\r\n\r\n";
|
$bodyhtml .= getMLText("email_header_html", $params, "", $lang)."\r\n\r\n";
|
||||||
|
@ -149,6 +150,7 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
|
||||||
elseif($params['__footer_html__'])
|
elseif($params['__footer_html__'])
|
||||||
$bodyhtml .= "\r\n\r\n".getMLText($params['__footer_html__'], $params, "", $lang);
|
$bodyhtml .= "\r\n\r\n".getMLText($params['__footer_html__'], $params, "", $lang);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$mime = new Mail_mime(array('eol' => "\n"));
|
$mime = new Mail_mime(array('eol' => "\n"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user