From b840bf07fe02959d22f36389f86c825f1437d4b4 Mon Sep 17 00:00:00 2001 From: Milan Medlik Date: Thu, 7 Nov 2013 18:59:19 +1300 Subject: [PATCH] fix exception in Multipart with -> --- inc/Multipart.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/Multipart.php b/inc/Multipart.php index edd5e8c..bf192a2 100644 --- a/inc/Multipart.php +++ b/inc/Multipart.php @@ -7,7 +7,7 @@ class SinglePart { private $type; private $otherHeaders; private $disposition; - private $id; + private $id; public static $crlf = "\r\n"; @@ -26,11 +26,11 @@ class SinglePart { } if ( $encoded ) - return $result . self::$crlf . $content; + return $result . self::$crlf . $this->content; return $result . 'Content-Transfer-Encoding: base64' . self::$crlf . self::$crlf - . base64_encode($content); + . base64_encode($this->content); } } @@ -46,7 +46,7 @@ class Multipart { } function addPart() { - $args = func_get_args(); + $args = func_get_args(); if ( is_string($args[0]) ) { $newPart = new SinglePart( $args[0], (isset($args[1])?$args[1]:'text/plain'), (isset($args[2])?$args[2]:array())); } -- 2.11.4.GIT