Initialize result variable so return don't crash

This commit is contained in:
Ivan Nieto Vivanco 2022-05-19 12:47:12 -05:00
parent deda1c2fd6
commit 5d29f77d60

View file

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