mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -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
|
||||
{
|
||||
$result = 0;
|
||||
$bytes = floatval($bytes);
|
||||
$arBytes = [
|
||||
0 => [
|
||||
|
|
Loading…
Reference in a new issue