Skip to content

Commit

Permalink
RESPONSETYPE is only available when EAS >= 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 26, 2013
1 parent 7932b89 commit 812fde5
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions kronolith/lib/Event.php
Expand Up @@ -1740,18 +1740,20 @@ public function toASAppointment(array $options = array())
$e->setReminder($exception->alarm);
$e->setDTStamp($_SERVER['REQUEST_TIME']);

switch ($exception->status) {
case Kronolith::STATUS_TENTATIVE;
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_TENTATIVE;
break;
case Kronolith::STATUS_NONE:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_NORESPONSE;
break;
case Kronolith::STATUS_CONFIRMED:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_ACCEPTED;
break;
default:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_NONE;
if ($options['protocolversion'] > Horde_ActiveSync::VERSION_TWELVEONE) {
switch ($exception->status) {
case Kronolith::STATUS_TENTATIVE;
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_TENTATIVE;
break;
case Kronolith::STATUS_NONE:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_NORESPONSE;
break;
case Kronolith::STATUS_CONFIRMED:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_ACCEPTED;
break;
default:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_NONE;
}
}

// Tags/Categories
Expand Down

0 comments on commit 812fde5

Please sign in to comment.