From 732acbf7a76bfe4d57c23b2c2db790ec83efdfd1 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 9 Oct 2020 22:28:41 +0200 Subject: [PATCH] Fix IHTTPResult::getHeader() - Now returns a string array, like expected - Fix usages - Fix dataset --- mailstream/mailstream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 23aed60f..2515f4f4 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() + 'type' => $curlResult->getContentType()[0] ?? '' ]; if (strlen($attachments[$url]['data'])) {