Commit 21c5a7f4 authored by mku's avatar mku

ZP-335 #comment Warning if there aren't any attendees #time 10m

git-svn-id: https://z-push.org/svn/z-push/trunk@1589 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 59c3ea8d
......@@ -291,10 +291,10 @@ class MAPIProvider {
// Status 0 = no meeting, status 1 = organizer, status 2/3/4/5 = tentative/accepted/declined/notresponded
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.
if(count($message->attendees) == 0) {
if (!isset($message->attendees) || !is_array($message->attendees))
$message->attendees = array();
// 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) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("MAPIProvider->getAppointment: adding ourself as an attendee for iOS6 workaround"));
$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