mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix hrStorageType being undefined (#14260)
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user