From: Michael M Slusarz Date: Fri, 20 Aug 2010 16:19:24 +0000 (-0600) Subject: Skip conversion/formatting if there is no content X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=27a897024d75384f056059983331d2cbde0b088a;p=horde.git Skip conversion/formatting if there is no content --- 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)));