Make some lines more readable

This commit is contained in:
Andrew Ruthven 2025-01-22 14:46:52 +13:00
parent b4bcc6cc25
commit f6547bd376

View File

@ -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'
: '')
);
}