From: Jan Schneider Date: Sun, 6 Sep 2009 16:39:45 +0000 (+0200) Subject: Re-throw PEAR_Error as exception. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=67bba00774607399595d7da933ae62083912180f;p=horde.git Re-throw PEAR_Error as exception. --- diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index 1cab6e91e..b7d87660a 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -1371,6 +1371,9 @@ class Horde_Mime_Part public function send($email, $headers, $driver, $params = array()) { $mailer = Mail::factory($driver, $params); + if ($mailer instanceof PEAR_Error) { + throw new Horde_Mime_Exception($mailer); + } $old_basepart = $this->_basepart; $this->_basepart = true;