diff --git a/inc/DAVResource.php b/inc/DAVResource.php index 78c7d7a0..f88b16e5 100644 --- a/inc/DAVResource.php +++ b/inc/DAVResource.php @@ -363,13 +363,19 @@ class DAVResource $this->FetchCollection(); if ( $this->_is_collection ) { - if ( $this->_is_principal || $this->collection->type == 'principal' ) $this->FetchPrincipal(); + if ( $this->_is_principal || $this->collection->type == 'principal' ) + $this->FetchPrincipal(); } else { $this->FetchResource(); } dbg_error_log( 'DAVResource', ':FromPath: Path "%s" is%s a collection%s.', - $this->dav_name, ($this->_is_collection?' '.$this->resourcetypes:' not'), ($this->_is_principal?' and a principal':'') ); + $this->dav_name, + ($this->_is_collection ? ' ' . $this->resourcetypes + : ' not'), + ($this->_is_principal ? ' and a principal' + : '') + ); }