diff --git a/calendar/inc/class.calendar_merge.inc.php b/calendar/inc/class.calendar_merge.inc.php index 60af4f99bb..51960aea56 100644 --- a/calendar/inc/class.calendar_merge.inc.php +++ b/calendar/inc/class.calendar_merge.inc.php @@ -888,9 +888,9 @@ class calendar_merge extends Api\Storage\Merge */ protected function normalize_event_id($id) { - if(is_string($id) || is_array($id) && $id['id'] && !$id['start']) + if(is_string($id) || is_array($id) && !empty($id['id']) && empty($id['start'])) { - if(strpos($id, ':')) + if (is_string($id) && strpos($id, ':')) { $_id = $id; $id = array();