From 4b2b678009e446c895b74f288bb7dfe78b835d2d Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 15 Aug 2009 15:42:42 -0400 Subject: [PATCH] Fix nesting - this code should only run in an exception is caught --- imp/lib/Mime/Viewer/Itip.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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')) { -- 2.11.0