From 7cba990d648e6b78b130c6f7bfffd464e608f447 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 2 Dec 2010 13:37:05 -0700 Subject: [PATCH] Only set charset if it is not empty --- imp/compose.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imp/compose.php b/imp/compose.php index 530e1cceb..752ef20d2 100644 --- a/imp/compose.php +++ b/imp/compose.php @@ -132,7 +132,9 @@ $stationery = $injector->getInstance('IMP_Compose_Stationery'); $charset = $prefs->isLocked('sending_charset') ? $prefs->getValue('sending_charset') : $vars->charset; -$imp_compose->charset = $charset; +if ($charset) { + $imp_compose->charset = $charset; +} /* Is this a popup window? */ $isPopup = ($prefs->getValue('compose_popup') || $vars->popup); -- 2.11.0