diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 5e24d22f6f..d7271a0dad 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -1899,7 +1899,17 @@ class calendar_bo $contacts = new Api\Contacts(); foreach($contacts->get_addressbooks() as $owner => $name) { - $holidays += $contacts->read_birthdays($owner, $year); + $birthdays = $contacts->read_birthdays($owner, $year); + + // Add them in, being careful not to override any existing + foreach($birthdays as $date => $bdays) + { + if(!array_key_exists($date, $holidays)) + { + $holidays[$date] = array(); + } + $holidays[$date] = array_merge($holidays[$date], $bdays); + } } }