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:30:50 +00:00
parent 215a0c0367
commit bdfdf55366

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']);