diff --git a/includes/html/pages/device/apps/smart.inc.php b/includes/html/pages/device/apps/smart.inc.php index 5a112afd45..51670cb9aa 100644 --- a/includes/html/pages/device/apps/smart.inc.php +++ b/includes/html/pages/device/apps/smart.inc.php @@ -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;