From d87171c62d1485d39c8ab53059bb6f4ab92c2513 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 14 Nov 2008 16:23:26 -0700 Subject: [PATCH] Fix undefined variable. --- framework/Mime/lib/Horde/Mime/Part.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.11.0