Skip to content

Commit

Permalink
Fix hrStorageType being undefined (librenms#14260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jellyfrog authored Sep 5, 2022
1 parent bdf9038 commit 9e5ced2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/discovery/storage/hrstorage.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
];

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']);
Expand Down

0 comments on commit 9e5ced2

Please sign in to comment.