mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-08 02:54:17 +01:00
fix undefined variable $vevent
using the return value of createComponent
This commit is contained in:
parent
bbe1b8ef4d
commit
bb600cd86f
@ -827,7 +827,7 @@ class Contact extends VObject\VCard implements IPIMObject {
|
|||||||
}
|
}
|
||||||
$vcal = new \Sabre\VObject\Component\VCalendar();
|
$vcal = new \Sabre\VObject\Component\VCalendar();
|
||||||
$vcal->VERSION = '2.0';
|
$vcal->VERSION = '2.0';
|
||||||
$vcal->createComponent('VEVENT');
|
$vevent = $vcal->createComponent('VEVENT');
|
||||||
$vevent->add('DTSTART');
|
$vevent->add('DTSTART');
|
||||||
$vevent->DTSTART->setDateTime(
|
$vevent->DTSTART->setDateTime(
|
||||||
$date
|
$date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user