More comprehensive fix for collections where sync_token does not compute.

This commit is contained in:
Andrew McMillan committed 2012-03-19 12:33:45 +13:00
1 parent f32ec4b704
commit 85017681d0
1 file changed
+4 -2
+4 -2
View File
@@ -1632,8 +1632,10 @@ EOQRY;
break;
case 'DAV::sync-token':
if ( ! $this->_is_collection || $this->_is_principal ) return false;
$reply->NSElement($prop, $tag, $this->sync_token() );
if ( ! $this->_is_collection ) return false;
$sync_token = $this->sync_token();
if ( empty($sync_token) ) return false;
$reply->NSElement($prop, $tag, $sync_token );
break;
case 'http://calendarserver.org/ns/:calendar-proxy-read-for':