Fix compose showing an extra span tag on body when switch from html to plain/text via preferences

This commit is contained in:
Hadi Nategh 2014-10-23 10:27:58 +00:00
parent 88414a5169
commit 39091af4e5

View File

@ -1077,7 +1077,7 @@ class mail_compose
}
else
{
$content['body'] = ($font_span?($isFirstLoad == "switchedplaintohtml"?$font_part:$font_span):/*($content['mimeType'] == 'html'?'&nbsp;':'')*/'').$content['body'].($isFirstLoad == "switchedplaintohtml"?"</span>":"");
$content['body'] = ($font_span?($isFirstLoad === "switchedplaintohtml"?$font_part:$font_span):/*($content['mimeType'] == 'html'?'&nbsp;':'')*/'').$content['body'].($isFirstLoad === "switchedplaintohtml"?"</span>":"");
}
//error_log(__METHOD__.__LINE__.$content['body']);