Potenziale fix per #1501
This commit is contained in:
parent
4678f8ac5f
commit
5d2be71108
|
@ -140,7 +140,7 @@ class Uploads
|
|||
public static function fileInfo($filepath)
|
||||
{
|
||||
$infos = pathinfo($filepath);
|
||||
$infos['extension'] = strtolower($infos['extension']);
|
||||
$infos['extension'] = strtolower($infos['extension'] ?? '');
|
||||
|
||||
return $infos;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue