mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Improved ctag for CalDAV
This commit is contained in:
parent
5e161094e7
commit
6fde93d15b
@ -763,9 +763,7 @@ error_log(__METHOD__."($path,,".array2string($start).") filter=".array2string($f
|
||||
'enum_recuring' => false,
|
||||
'daywise' => false,
|
||||
'date_format' => 'server',
|
||||
'cols' => array('cal_modified'),
|
||||
'order' => 'cal_modified DESC',
|
||||
'num_rows' => 1,
|
||||
'cols' => array('egw_cal.cal_id', 'cal_start', 'cal_modified'),
|
||||
);
|
||||
|
||||
if ($path == '/calendar/')
|
||||
@ -777,18 +775,17 @@ error_log(__METHOD__."($path,,".array2string($start).") filter=".array2string($f
|
||||
$filter['filter'] = 'default'; // not rejected
|
||||
}
|
||||
|
||||
$ctag = 0;
|
||||
|
||||
if (($events =& $this->bo->search($filter)))
|
||||
{
|
||||
foreach ($events as $event)
|
||||
{
|
||||
$ctag = $event['cal_modified'];
|
||||
$modified = max($this->bo->so->max_user_modified($event['cal_id']), $event['cal_modified']);
|
||||
if ($ctag < $modified) $ctag = $modified;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ctag = '0';
|
||||
}
|
||||
|
||||
if ($this->debug > 1) error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. "($path)[$user] = $ctag");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user