More comprehensive fix for collections where sync_token does not compute.

This commit is contained in:
Andrew McMillan 2012-03-19 12:33:45 +13:00
parent f32ec4b704
commit 85017681d0

View File

@ -1632,8 +1632,10 @@ EOQRY;
break; break;
case 'DAV::sync-token': case 'DAV::sync-token':
if ( ! $this->_is_collection || $this->_is_principal ) return false; if ( ! $this->_is_collection ) return false;
$reply->NSElement($prop, $tag, $this->sync_token() ); $sync_token = $this->sync_token();
if ( empty($sync_token) ) return false;
$reply->NSElement($prop, $tag, $sync_token );
break; break;
case 'http://calendarserver.org/ns/:calendar-proxy-read-for': case 'http://calendarserver.org/ns/:calendar-proxy-read-for':