mirror of
https://github.com/friendica/friendica
synced 2024-11-18 18:23:40 +00:00
Fix getHeader()
This commit is contained in:
parent
65ca164487
commit
653d49cb92
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue