From 39091af4e5dac9dc359f477cbe9c211550b59658 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 23 Oct 2014 10:27:58 +0000 Subject: [PATCH] Fix compose showing an extra span tag on body when switch from html to plain/text via preferences --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index f08c6eaeaf..c2b3f2d704 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -1077,7 +1077,7 @@ class mail_compose } else { - $content['body'] = ($font_span?($isFirstLoad == "switchedplaintohtml"?$font_part:$font_span):/*($content['mimeType'] == 'html'?' ':'')*/'').$content['body'].($isFirstLoad == "switchedplaintohtml"?"":""); + $content['body'] = ($font_span?($isFirstLoad === "switchedplaintohtml"?$font_part:$font_span):/*($content['mimeType'] == 'html'?' ':'')*/'').$content['body'].($isFirstLoad === "switchedplaintohtml"?"":""); } //error_log(__METHOD__.__LINE__.$content['body']);