Fix nesting - this code should only run in an exception is caught
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 15 Aug 2009 19:42:42 +0000 (15:42 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 15 Aug 2009 19:42:42 +0000 (15:42 -0400)
imp/lib/Mime/Viewer/Itip.php

index a8fe4ee..dfefe8a 100644 (file)
@@ -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.") .
                                             '&nbsp;' . Horde::link($url, _("View event"), null, '_blank') . Horde::img('mime/icalendar.png', _("View event"), null, $registry->getImageDir('horde')) . '</a>');
-                        } 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')) {