From: Michael J. Rubinsky Date: Sat, 15 Aug 2009 19:42:42 +0000 (-0400) Subject: Fix nesting - this code should only run in an exception is caught X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4b2b678009e446c895b74f288bb7dfe78b835d2d;p=horde.git Fix nesting - this code should only run in an exception is caught --- diff --git a/imp/lib/Mime/Viewer/Itip.php b/imp/lib/Mime/Viewer/Itip.php index a8fe4eefd..dfefe8a2a 100644 --- a/imp/lib/Mime/Viewer/Itip.php +++ b/imp/lib/Mime/Viewer/Itip.php @@ -151,9 +151,10 @@ class IMP_Horde_Mime_Viewer_Itip extends Horde_Mime_Viewer_Driver $url = Horde::url($registry->link('calendar/show', array('uid' => $guid))); $msgs[] = array('success', _("The event was updated in your calendar.") . ' ' . Horde::link($url, _("View event"), null, '_blank') . Horde::img('mime/icalendar.png', _("View event"), null, $registry->getImageDir('horde')) . ''); - } catch (Horde_Exception $e) {} - // Could be a missing permission. - $msgs[] = array('warning', _("There was an error updating the event:") . ' ' . $e->getMessage() . '. ' . _("Trying to import the event instead.")); + } catch (Horde_Exception $e) { + // Could be a missing permission. + $msgs[] = array('warning', _("There was an error updating the event:") . ' ' . $e->getMessage() . '. ' . _("Trying to import the event instead.")); + } } if (!$handled && $registry->hasMethod('calendar/import')) {