Fix unwanted extra participants in consolidated views when new event participant preference is 'just me'

This commit is contained in:
nathangray 2016-09-12 12:00:49 -06:00
parent 16b131c883
commit 23f5e5fb70

View File

@ -94,7 +94,10 @@ class calendar_uiforms extends calendar_ui
$owner = $_GET['owner']; $owner = $_GET['owner'];
if(is_array($owner)) if(is_array($owner))
{ {
$extra_participants += $owner; if($this->cal_prefs['default_participant'])
{
$extra_participants += $owner;
}
$owner = count($owner) > 1 ? $this->user : $owner[0]; $owner = count($owner) > 1 ? $this->user : $owner[0];
} }
else if ($owner) else if ($owner)