Skip to content

Commit

Permalink
Catch exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 27, 2015
1 parent 338a51e commit b54b797
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions framework/Itip/lib/Horde/Itip/Event/Vtodo.php
Expand Up @@ -277,8 +277,12 @@ private function copyDescription(Horde_Itip_Event $itip)
*/
public function getStartParameters()
{
$parameters = $this->_vevent->getAttribute('DTSTART', true);
return array_pop($parameters);
try {
$parameters = $this->_vevent->getAttribute('DTSTART', true);
return array_pop($parameters);
} catch (Horde_Icalendar_Exception $e) {
return array();
}
}

/**
Expand Down

0 comments on commit b54b797

Please sign in to comment.