diff --git a/app/Model/helpdesk/Ticket/Ticket_attachments.php b/app/Model/helpdesk/Ticket/Ticket_attachments.php index 23d0c01f0..1172eac02 100644 --- a/app/Model/helpdesk/Ticket/Ticket_attachments.php +++ b/app/Model/helpdesk/Ticket/Ticket_attachments.php @@ -46,7 +46,7 @@ class Ticket_attachments extends Model $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $power = $size > 0 ? floor(log($size, 1024)) : 0; $value = number_format($size / pow(1024, $power), 2, '.', ',').' '.$units[$power]; - if ($this->poster == 'ATTACHMENT') { + if ($this->poster == 'ATTACHMENT' || $this->poster == 'attachment') { if (mime($this->type) == 'image') { $var = '';