From d1cb92dc00396a54aae703f75bb2f311ba3d4115 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 16 Mar 2010 15:12:08 -0600 Subject: [PATCH] No need for userinfo in Exception thrown. --- framework/Mime/lib/Horde/Mime/Part.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index 8e0ccfceb..dd3731e78 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -1501,15 +1501,11 @@ class Horde_Mime_Part $this->_basepart = $old_basepart; - if (is_a($result, 'PEAR_Error') && ($driver == 'sendmail')) { + if (($result instanceof PEAR_Error) && ($driver == 'sendmail')) { $error = Horde_Mime_Mail::sendmailError($result->getCode()); if (is_null($error)) { $error = $result; - $userinfo = null; - } else { - $userinfo = $result->toString(); } - // TODO: userinfo throw new Horde_Mime_Exception($error); } -- 2.11.0