From 9e5ced28d41c98f263c45d82611534382b2eed0e Mon Sep 17 00:00:00 2001 From: Jellyfrog Date: Mon, 5 Sep 2022 22:34:59 +0200 Subject: [PATCH] Fix hrStorageType being undefined (#14260) --- includes/discovery/storage/hrstorage.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/storage/hrstorage.inc.php b/includes/discovery/storage/hrstorage.inc.php index 20c36a7ddb..6b48ef63e3 100644 --- a/includes/discovery/storage/hrstorage.inc.php +++ b/includes/discovery/storage/hrstorage.inc.php @@ -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']);