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