From 2cb5b799f071521e368de844573ad7b11455f4f4 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 7 Apr 2010 20:10:58 -0400 Subject: [PATCH] Fix adding and getting attendees from the Appointment object. Adding attendees should now work when syncing --- .../ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php b/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php index f63df804f..9e28da1ca 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Message/Appointment.php @@ -45,7 +45,7 @@ class Horde_ActiveSync_Message_Appointment extends Horde_ActiveSync_Message_Base * from a __get() property. */ public $exceptions = array(); - public $attendees; + public $attendees = array(); public $categories; /** @@ -653,12 +653,8 @@ class Horde_ActiveSync_Message_Appointment extends Horde_ActiveSync_Message_Base */ public function addAttendee($attendee) { - if (!isset($this->_properties['attendees']) || !is_array($this->_properties['attendees'])) { - $this->_properties['attendees'] = array(); - } - /* Both email and name are REQUIRED if setting an attendee */ - $this->_properties['attendees'][] = $attendee; + $this->attendees[] = $attendee; } /** @@ -668,7 +664,7 @@ class Horde_ActiveSync_Message_Appointment extends Horde_ActiveSync_Message_Base */ public function getAttendees() { - return $this->_getAttribute('attendees', array()); + return $this->attendees; } /** -- 2.11.0