mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-12 03:14:31 +00:00
Avoid unassigned variable warning.
This commit is contained in:
parent
483683d3f6
commit
a32d1f2ac2
@ -271,7 +271,7 @@ class DAVResource
|
||||
else {
|
||||
$this->resourcetypes = '';
|
||||
if ( isset($this->resource->caldav_data) ) {
|
||||
$this->resource->displayname = $this->resource->summary;
|
||||
if ( isset($this->resource->summary) )$this->resource->displayname = $this->resource->summary;
|
||||
if ( strtoupper(substr($this->resource->caldav_data,0,15)) == 'BEGIN:VCALENDAR' ) {
|
||||
$this->contenttype = 'text/calendar';
|
||||
if ( !$this->HavePrivilegeTo('read') && $this->HavePrivilegeTo('read-free-busy') ) {
|
||||
@ -292,6 +292,7 @@ class DAVResource
|
||||
$comp->ClearComponents('VALARM');
|
||||
$vcal2->AddComponent($comp);
|
||||
}
|
||||
$this->resource->displayname = $this->resource->summary = $vcal2->GetPValue('SUMMARY');
|
||||
$this->resource->caldav_data = $vcal2->Render();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user