diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index 4de1817d5e..101d13fda4 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -170,7 +170,7 @@ class calendar_groupdav extends groupdav_handler if ($events) { // get all max user modified times at once - foreach($events as $k => &$event) + foreach($events as $k => $event) { if ($this->client_shared_uid_exceptions && $event['reference'] && @@ -185,7 +185,7 @@ class calendar_groupdav extends groupdav_handler } $max_user_modified = $this->bo->so->max_user_modified($ids); - foreach($events as &$event) + foreach($events as $event) { $event['max_user_modified'] = $max_user_modified[$event['id']]; //header('X-EGROUPWARE-EVENT-'.$event['id'].': '.$event['title'].': '.date('Y-m-d H:i:s',$event['start']).' - '.date('Y-m-d H:i:s',$event['end'])); diff --git a/infolog/inc/class.infolog_groupdav.inc.php b/infolog/inc/class.infolog_groupdav.inc.php index 39d76b10ea..fe21dc748a 100644 --- a/infolog/inc/class.infolog_groupdav.inc.php +++ b/infolog/inc/class.infolog_groupdav.inc.php @@ -102,9 +102,8 @@ class infolog_groupdav extends groupdav_handler // todo add a filter to limit how far back entries from the past get synced $filter = array( - 'info_type' => 'task', - 'filter' => $task_filter, - 'calendar_data' => false, + 'info_type' => 'task', + 'filter' => $task_filter, ); // process REPORT filters or multiget href's @@ -165,7 +164,7 @@ class infolog_groupdav extends groupdav_handler 'col_filter' => $filter, ); - if ($calendar_data) + if (!$calendar_data) { $query['cols'] = array('info_id', 'info_datemodified'); } @@ -185,7 +184,7 @@ class infolog_groupdav extends groupdav_handler $tasks =& $this->bo->search($query); if ($tasks && $offset == $query['start']) { - foreach($tasks as &$task) + foreach($tasks as $task) { $props = array( HTTP_WebDAV_Server::mkprop('getetag',$this->get_etag($task)),