From: Michael J. Rubinsky Date: Sat, 7 Aug 2010 00:44:59 +0000 (-0400) Subject: Only include Recurrence.Until in the AS message if the event has it set. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4d3b94f53ce6356c7fa5263342247bee0ca4f881;p=horde.git Only include Recurrence.Until in the AS message if the event has it set. The default date with a year of 9999 breaks at least the moto droid client. --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php b/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php index 4a19cd1d7..7344e4ad3 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php @@ -391,10 +391,10 @@ class Horde_ActiveSync_Message_Appointment extends Horde_ActiveSync_Message_Base $r->interval = $recurrence->recurInterval; } - /* AS messages can only have one or the other, not both */ + /* AS messages can only have one or the other (or none), not both */ if ($recurrence->hasRecurCount()) { $r->occurrences = $recurrence->getRecurCount(); - } else { + } elseif ($recurrence->hasRecurEnd()) { $r->until = $recurrence->getRecurEnd(); }