mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Make some lines more readable
This commit is contained in:
parent
b4bcc6cc25
commit
f6547bd376
@ -363,13 +363,19 @@ class DAVResource
|
|||||||
|
|
||||||
$this->FetchCollection();
|
$this->FetchCollection();
|
||||||
if ( $this->_is_collection ) {
|
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 {
|
else {
|
||||||
$this->FetchResource();
|
$this->FetchResource();
|
||||||
}
|
}
|
||||||
dbg_error_log( 'DAVResource', ':FromPath: Path "%s" is%s a collection%s.',
|
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'
|
||||||
|
: '')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user