kopia lustrzana https://github.com/friendica/friendica
Fix getHeader()
rodzic
65ca164487
commit
653d49cb92
|
@ -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]);
|
||||
|
|
Ładowanie…
Reference in New Issue