IHTTPResult::getContentType is now a string again

This commit is contained in:
Philipp 2020-10-10 21:41:22 +02:00
parent 732acbf7a7
commit b4ede4a0ed
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -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'])) {