Fix event from mail did not add users as participants

This commit is contained in:
Nathan Gray 2016-03-14 15:58:25 +00:00
parent 0cdcc975cb
commit a13035ac06

View File

@ -768,7 +768,7 @@ class calendar_uiforms extends calendar_ui
} }
// Adding participants needs to be done as an edit, in case we // Adding participants needs to be done as an edit, in case we
// have participants visible in seperate calendars // have participants visible in seperate calendars
if(count(array_diff_key($event['participants'], $old_event['participants']))) if(is_array($old_event['participants']) && count(array_diff_key($event['participants'], $old_event['participants'])))
{ {
$update_type = 'edit'; $update_type = 'edit';
} }
@ -2969,7 +2969,7 @@ class calendar_uiforms extends calendar_ui
} }
} }
$participants = array_merge($participants , array( $participants = array_merge($participants , array(
"account" => $accounts, "participant" => $accounts,
"role" => "REQ-PARTICIPANT", "role" => "REQ-PARTICIPANT",
"add" => "pressed" "add" => "pressed"
)); ));