From: Michael M Slusarz Date: Fri, 14 Nov 2008 23:23:26 +0000 (-0700) Subject: Fix undefined variable. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d87171c62d1485d39c8ab53059bb6f4ab92c2513;p=horde.git Fix undefined variable. --- diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index 80acdafb5..3a1b2a6bd 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -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) {