mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Initialize result variable so return don't crash
This commit is contained in:
parent
deda1c2fd6
commit
5d29f77d60
|
@ -218,6 +218,7 @@ class Setting extends Model
|
||||||
*/
|
*/
|
||||||
public static function fileSizeConvert($bytes): string
|
public static function fileSizeConvert($bytes): string
|
||||||
{
|
{
|
||||||
|
$result = 0;
|
||||||
$bytes = floatval($bytes);
|
$bytes = floatval($bytes);
|
||||||
$arBytes = [
|
$arBytes = [
|
||||||
0 => [
|
0 => [
|
||||||
|
|
Loading…
Reference in a new issue