Skip to content

A free open source IT asset/license management system

Initialize result variable so return don't crash

Ivan Nieto Vivanco5d29f77d608a
diff --git a/app/Models/Setting.php b/app/Models/Setting.php
index e58001f5b8..0c35879779 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 => [