1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-31 20:52:17 +01:00

fix undefined variable $vevent

using the return value of createComponent
This commit is contained in:
Sebastian Kostka 2015-04-27 23:02:13 +02:00
parent bbe1b8ef4d
commit bb600cd86f

View File

@ -827,7 +827,7 @@ class Contact extends VObject\VCard implements IPIMObject {
}
$vcal = new \Sabre\VObject\Component\VCalendar();
$vcal->VERSION = '2.0';
$vcal->createComponent('VEVENT');
$vevent = $vcal->createComponent('VEVENT');
$vevent->add('DTSTART');
$vevent->DTSTART->setDateTime(
$date