Fix logic
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Jul 2009 15:50:01 +0000 (09:50 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Jul 2009 15:50:01 +0000 (09:50 -0600)
framework/Mime/lib/Horde/Mime/Part.php

index 2a1e496..4719fc8 100644 (file)
@@ -1002,7 +1002,7 @@ class Horde_Mime_Part
         if (is_string($headers)) {
             array_unshift($parts, $headers);
         } elseif ($headers) {
-            $hdr_ob = $this->addMimeHeaders(array('encode' => $options['encode'], 'headers' => ($headers === false) ? null : $headers));
+            $hdr_ob = $this->addMimeHeaders(array('encode' => $options['encode'], 'headers' => ($headers === true) ? null : $headers));
             $hdr_ob->setEOL($eol);
             if (!empty($this->_temp['toString'])) {
                 $hdr_ob->replaceHeader('Content-Transfer-Encoding', $this->_temp['toString']);