Skip to content

Commit

Permalink
Merge pull request #1 from Skyr/master
Browse files Browse the repository at this point in the history
implemented change for Radicale server: Ignore elements of resourcetype collection
  • Loading branch information
jens-maus committed Aug 9, 2015
2 parents 6c7bbad + 09cc5a8 commit c018faf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion carddav.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ private function simplify($response, $include_vcards = true)

if (!empty($xml->response)) {
foreach ($xml->response as $response) {
if (preg_match('/vcard/', $response->propstat->prop->getcontenttype) || preg_match('/vcf/', $response->href)) {
if ((preg_match('/vcard/', $response->propstat->prop->getcontenttype) || preg_match('/vcf/', $response->href)) &&
!$response->propstat->prop->resourcetype->collection) {
$id = basename($response->href);
$id = str_replace($this->url_vcard_extension, null, $id);

Expand Down

0 comments on commit c018faf

Please sign in to comment.