Commit a9acf7dd authored by skummer's avatar skummer

ZP-313 #comment initialize attendees array #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1556 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 9ec5826d
...@@ -293,6 +293,9 @@ class MAPIProvider { ...@@ -293,6 +293,9 @@ class MAPIProvider {
if(isset($messageprops[$appointmentprops["meetingstatus"]]) && $messageprops[$appointmentprops["meetingstatus"]] > 1) { if(isset($messageprops[$appointmentprops["meetingstatus"]]) && $messageprops[$appointmentprops["meetingstatus"]] > 1) {
// Work around iOS6 cancellation issue when there are no attendees for this meeting. Just add ourselves as the sole attendee. // Work around iOS6 cancellation issue when there are no attendees for this meeting. Just add ourselves as the sole attendee.
if(count($message->attendees) == 0) { if(count($message->attendees) == 0) {
if (!isset($message->attendees) || !is_array($message->attendees))
$message->attendees = array();
ZLog::Write(LOGLEVEL_DEBUG, sprintf("MAPIProvider->getAppointment: adding ourself as an attendee for iOS6 workaround")); ZLog::Write(LOGLEVEL_DEBUG, sprintf("MAPIProvider->getAppointment: adding ourself as an attendee for iOS6 workaround"));
$attendee = new SyncAttendee(); $attendee = new SyncAttendee();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment