From: Michael J. Rubinsky Date: Thu, 8 Apr 2010 00:10:58 +0000 (-0400) Subject: Fix adding and getting attendees from the Appointment object. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2cb5b799f071521e368de844573ad7b11455f4f4;p=horde.git Fix adding and getting attendees from the Appointment object. Adding attendees should now work when syncing --- 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; } /**