Change no array detection.

This commit is contained in:
dlandon
2024-05-23 06:55:13 -05:00
parent 05f6afd1a2
commit 1d5ff688ba

View File

@@ -41,7 +41,7 @@ function checkDisks($disks) {
}
/* If the configuration is pools only, then no array disks are available. */
$poolsOnly = ((int)$var['sbNumDisks'] == 2) ? true : false;
$poolsOnly = ((int)$var['SYS_ARRAY_SLOTS'] <= 2) ? true : false;
/* Are there any array disks? */
$disks = parse_ini_file('state/disks.ini',true) ?? [];