Fix undefined variable.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 14 Nov 2008 23:23:26 +0000 (16:23 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Sun, 16 Nov 2008 17:56:21 +0000 (10:56 -0700)
framework/Mime/lib/Horde/Mime/Part.php

index 80acdaf..3a1b2a6 100644 (file)
@@ -899,13 +899,14 @@ class Horde_Mime_Part
      */
     public function getTransferEncoding()
     {
+        $encoding = $this->_transferEncoding;
+
         /* If there are no contents, return whatever the current value of
            $_transferEncoding is. */
         if (empty($this->_contents)) {
             return $encoding;
         }
 
-        $encoding = $this->_transferEncoding;
         $ptype = $this->getPrimaryType();
 
         switch ($ptype) {