From 27a897024d75384f056059983331d2cbde0b088a Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 20 Aug 2010 10:19:24 -0600 Subject: [PATCH] Skip conversion/formatting if there is no content --- imp/lib/Prefs/Ui.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Prefs/Ui.php b/imp/lib/Prefs/Ui.php index bbea9f4e0..2b9407845 100644 --- a/imp/lib/Prefs/Ui.php +++ b/imp/lib/Prefs/Ui.php @@ -1646,7 +1646,7 @@ class IMP_Prefs_Ui ? $ui->vars->type : 'plain'; - if ($ui->vars->last_type != $type) { + if ($content && ($ui->vars->last_type != $type)) { $content = ($type == 'plain') ? $GLOBALS['injector']->getInstance('Horde_Text_Filter')->filter($content, 'Html2text') : nl2br(htmlspecialchars(htmlspecialchars($content))); -- 2.11.0