From 5d29f77d608a1001c756bf48f56d938d5805111c Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Thu, 19 May 2022 12:47:12 -0500 Subject: [PATCH] Initialize result variable so return don't crash --- app/Models/Setting.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Setting.php b/app/Models/Setting.php index e58001f5b..0c3587977 100755 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -218,6 +218,7 @@ class Setting extends Model */ public static function fileSizeConvert($bytes): string { + $result = 0; $bytes = floatval($bytes); $arBytes = [ 0 => [