Fix compatibility with recent Sabre/VObject (#5185)
This commit is contained in:
parent
7ef34b6944
commit
aa3523cc76
1 changed files with 2 additions and 2 deletions
|
@ -621,12 +621,12 @@ class libvcalendar implements Iterator
|
|||
switch ($prop->name) {
|
||||
case 'TRIGGER':
|
||||
foreach ($prop->parameters as $param) {
|
||||
if ($param->name == 'VALUE' && $param->value == 'DATE-TIME') {
|
||||
if ($param->name == 'VALUE' && $param->getValue() == 'DATE-TIME') {
|
||||
$trigger = '@' . $prop->getDateTime()->format('U');
|
||||
$alarm['trigger'] = $prop->getDateTime();
|
||||
}
|
||||
else if ($param->name == 'RELATED') {
|
||||
$alarm['related'] = $param->value;
|
||||
$alarm['related'] = $param->getValue();
|
||||
}
|
||||
}
|
||||
if (!$trigger && ($values = libcalendaring::parse_alarm_value($value))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue