Only set charset if it is not empty
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Dec 2010 20:37:05 +0000 (13:37 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Dec 2010 20:37:05 +0000 (13:37 -0700)
imp/compose.php

index 530e1cc..752ef20 100644 (file)
@@ -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);