projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d69606
)
Skip conversion/formatting if there is no content
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 20 Aug 2010 16:19:24 +0000
(10:19 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 20 Aug 2010 16:19:24 +0000
(10:19 -0600)
imp/lib/Prefs/Ui.php
patch
|
blob
|
history
diff --git
a/imp/lib/Prefs/Ui.php
b/imp/lib/Prefs/Ui.php
index
bbea9f4
..
2b94078
100644
(file)
--- 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)));