Fix accessing attachments in invitations calendars (#5465)
This commit is contained in:
parent
0fe3c246d1
commit
f5ac7a872e
1 changed files with 3 additions and 4 deletions
|
@ -1652,15 +1652,14 @@ class kolab_driver extends calendar_driver
|
||||||
$event = $storage->get_event($event['id']);
|
$event = $storage->get_event($event['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($event && !empty($event['_attachments'])) {
|
if ($event) {
|
||||||
foreach ($event['_attachments'] as $att) {
|
$attachments = isset($event['_attachments']) ? $event['_attachments'] : $event['attachments'];
|
||||||
|
foreach ((array) $attachments as $att) {
|
||||||
if ($att['id'] == $id) {
|
if ($att['id'] == $id) {
|
||||||
return $att;
|
return $att;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue