[Tickets #12801] Re: Unable to parse recurring events during iCalendar import
noreply at bugs.horde.org
noreply at bugs.horde.org
Sun Nov 3 14:58:10 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/12801
------------------------------------------------------------------------------
Ticket | 12801
Updated By | wrcdrijfhout at imperamus.eu
Summary | Unable to parse recurring events during iCalendar
| import
Queue | Kronolith
Version | 4.1.3
Type | Bug
State | Resolved
Priority | 2. Medium
Milestone |
Patch |
Owners | Jan Schneider
------------------------------------------------------------------------------
wrcdrijfhout at imperamus.eu (2013-11-03 14:58) wrote:
> I suggest the following generalization:
> `
$vEventException_r = $exceptionEvent->toiCalendar($calendar);
> foreach ($vEventException_r as $key => &$vEE){
> if ($vEE instanceof Horde_Icalendar_Vtimezone){
> unset($vEventException_r[$key]);
> }
> }
> // This should never happen, but protect against
> it anyway.
> if (count($vEventException_r) > 1) {
> throw new Kronolith_Exception(_("Unable to
> parse event."));
> }
> $vEventException = array_pop($vEventException_r);
> `
More information about the bugs
mailing list