Bug #8148: Fix undefined variable
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Apr 2009 16:54:35 +0000 (10:54 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Apr 2009 16:54:55 +0000 (10:54 -0600)
imp/lib/Compose.php

index b023716..f345119 100644 (file)
@@ -1403,7 +1403,7 @@ class IMP_Compose
 
         return array(
             'body' => $msg,
-            'encoding' => $msg_text['encoding'],
+            'encoding' => isset($msg_text) ? $msg_text['encoding'] : NLS::getCharset(),
             'format' => $format,
             'headers' => $header,
             'identity' => $this->_getMatchingIdentity($h)