Fix unintentional $this->data modification in get_tags()
This commit is contained in:
parent
e03156fc1f
commit
4a0c47de0b
1 changed files with 4 additions and 1 deletions
|
@ -132,7 +132,10 @@ class kolab_format_file extends kolab_format
|
|||
|
||||
// Add file mimetype to tags
|
||||
if (!empty($this->data['_attachments'])) {
|
||||
$attachment = array_shift($this->data['_attachments']);
|
||||
reset($this->data['_attachments']);
|
||||
$key = key($this->data['_attachments']);
|
||||
$attachment = $this->data['_attachments'][$key];
|
||||
|
||||
if ($attachment['mimetype']) {
|
||||
$tags[] = $attachment['mimetype'];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue