Skip to content

Commit

Permalink
Catch exception. Fixes displaying iTip viewer for non-recurring events.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 29, 2014
1 parent 39c6088 commit 66d1de5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion imp/lib/Mime/Viewer/Itip.php
Expand Up @@ -403,7 +403,11 @@ protected function _vEvent($vevent, $id, $method = 'PUBLISH', $components = arra
$view->loc = $vevent->getAttribute('LOCATION');
} catch (Horde_Icalendar_Exception $e) {}

$rrule = $vevent->getAttribute('RRULE');
try {
$rrule = $vevent->getAttribute('RRULE');
} catch (Horde_Icalendar_Exception $e) {
$rrule = array();
}
if (!is_array($rrule)) {
$recurrence = new Horde_Date_Recurrence(new Horde_Date($view->start));
if (strpos($rrule, '=') !== false) {
Expand Down

0 comments on commit 66d1de5

Please sign in to comment.