diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 86d49a9c..4fad7ede 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -407,6 +407,7 @@ EOSQL; 'dav_name' => '/', 'dav_etag' => md5($c->system_name), 'is_calendar' => 'f', + 'is_addressbook' => 'f', 'is_principal' => 'f', 'user_no' => 0, 'dav_displayname' => $c->system_name, @@ -493,6 +494,15 @@ EOSQL; ) ); } + if ( isset($this->collection) && $this->collection->is_addressbook ) { + $this->supported_reports = array_merge( + $this->supported_reports, + array( +// 'urn:ietf:params:xml:ns:carddav:addressbook-query' => '', + 'urn:ietf:params:xml:ns:carddav:addressbook-multiget' => '' + ) + ); + } /**