Fix GroupDAV iterator issue

This commit is contained in:
Jörg Lehrke 2010-03-16 20:44:55 +00:00
parent 2c790ac879
commit fc07594746
2 changed files with 6 additions and 7 deletions

View File

@ -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']));

View File

@ -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)),