From 653d49cb92206aab7e21931759a1442bcb118a05 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 20 Aug 2021 22:00:28 +0200 Subject: [PATCH] Fix getHeader() --- src/Model/Post/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Post/Media.php b/src/Model/Post/Media.php index c57b1cabe..6f3ca2344 100644 --- a/src/Model/Post/Media.php +++ b/src/Model/Post/Media.php @@ -173,7 +173,7 @@ class Media $media['mimetype'] = $curlResult->getHeader('Content-Type')[0] ?? ''; } if (empty($media['size'])) { - $media['size'] = (int)$curlResult->getHeader('Content-Length')[0] ?? 0; + $media['size'] = (int)($curlResult->getHeader('Content-Length')[0] ?? 0); } } else { Logger::notice('Could not fetch head', ['media' => $media]);