diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 2515f4f4..23aed60f 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -160,7 +160,7 @@ function mailstream_do_images($a, &$item, &$attachments) { 'data' => $curlResult->getBody(), 'guid' => hash("crc32", $url), 'filename' => basename($components['path']), - 'type' => $curlResult->getContentType()[0] ?? '' + 'type' => $curlResult->getContentType() ]; if (strlen($attachments[$url]['data'])) {