Fix hrStorageType being undefined (#14260)

This commit is contained in:
Jellyfrog
2022-09-05 22:34:59 +02:00
committed by GitHub
parent bdf903818b
commit 9e5ced28d4
+1 -1
View File
@@ -25,7 +25,7 @@ if (is_array($hrstorage_array)) {
];
foreach ($hrstorage_array as $index => $storage) {
$fstype = $storage['hrStorageType'];
$fstype = $storage['hrStorageType'] ?? null;
$descr = $storage['hrStorageDescr'];
$storage['hrStorageSize'] = fix_integer_value($storage['hrStorageSize']);
$storage['hrStorageUsed'] = fix_integer_value($storage['hrStorageUsed']);