From: Jan Schneider Date: Thu, 3 Jun 2010 11:32:51 +0000 (+0200) Subject: No PEAR_Error anymore. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=00376ac95bdeb1df81ca8e4aac7f2d78ba7ac6e3;p=horde.git No PEAR_Error anymore. --- diff --git a/framework/Ui/lib/Horde/Ui/VarRenderer/Html.php b/framework/Ui/lib/Horde/Ui/VarRenderer/Html.php index 27634a4bd..5bce4bf97 100644 --- a/framework/Ui/lib/Horde/Ui/VarRenderer/Html.php +++ b/framework/Ui/lib/Horde/Ui/VarRenderer/Html.php @@ -1009,8 +1009,9 @@ EOT; // Get rid of the trailing @ (when no host is included in // the email address). $address = str_replace('@>', '>', $address); - $mail_link = $GLOBALS['registry']->call('mail/compose', array(array('to' => addslashes($address)))); - if (is_a($mail_link, 'PEAR_Error')) { + try { + $mail_link = $GLOBALS['registry']->call('mail/compose', array(array('to' => addslashes($address)))); + } catch (Horde_Exception $e) { $mail_link = 'mailto:' . urlencode($address); }