update doc and fix a warning

This commit is contained in:
Florian Schlichting committed 2018-01-08 22:43:27 +01:00
1 parent 50a29d96ab
commit eba26021c7
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -285,7 +285,7 @@ class DAVResource
$this->resource->url = null;
}
else {
if ( strtoupper($this->resource->class)=='CONFIDENTIAL' && !$this->HavePrivilegeTo('all') && $session->user_no != $this->resource->user_no ) {
if ( isset($this->resource->class) && strtoupper($this->resource->class)=='CONFIDENTIAL' && !$this->HavePrivilegeTo('all') && $session->user_no != $this->resource->user_no ) {
$vcal = new iCalComponent($this->resource->caldav_data);
$confidential = $vcal->CloneConfidential();
$this->resource->caldav_data = $confidential->Render();