Merge pull request #11167 from inietov/fixes/error_500_on_import_page

Fixes #9019 Import page returns error 500
This commit is contained in:
snipe 2022-05-19 10:50:59 -07:00 committed by GitHub
commit 8706b6d8a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,6 +218,7 @@ class Setting extends Model
*/
public static function fileSizeConvert($bytes): string
{
$result = 0;
$bytes = floatval($bytes);
$arBytes = [
0 => [