mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
handle $app_data['disks'] not being set for SMART app page display (#16087)
* handle $app_data['disks'] not being set for SMART app page display * style fix
This commit is contained in:
committed by
GitHub
parent
8bf40c5eef
commit
d0ca744c8a
@@ -13,7 +13,9 @@ $drives = [];
|
||||
|
||||
$app_data = $app->data;
|
||||
|
||||
array_multisort(array_keys($app_data['disks']), SORT_ASC, $app_data['disks']);
|
||||
if (isset($app_data['disks']) && is_array($app_data['disks'])) {
|
||||
array_multisort(array_keys($app_data['disks']), SORT_ASC, $app_data['disks']);
|
||||
}
|
||||
|
||||
foreach ($app_data['disks'] as $label => $disk_data) {
|
||||
$disk = $label;
|
||||
|
||||
Reference in New Issue
Block a user