No need for userinfo in Exception thrown.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Mar 2010 21:12:08 +0000 (15:12 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Mar 2010 21:31:21 +0000 (15:31 -0600)
framework/Mime/lib/Horde/Mime/Part.php

index 8e0ccfc..dd3731e 100644 (file)
@@ -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);
         }