Some shares show incorrectly after upgrading from previous Unraid versions.

This commit is contained in:
dlandon
2024-12-20 15:37:59 -06:00
parent 175d24afd2
commit d888ce8ddc
2 changed files with 41 additions and 17 deletions

View File

@@ -188,6 +188,11 @@ define('LUKS_STATUS_UNENCRYPTED', 2);
// Build table
$row = 0;
foreach ($shares as $name => $share) {
/* Correct a situation in previous Unraid versions where an array only share has a useCache defined. */
if ((!$poolsOnly) && ($share['useCache'] == "no")) {
$share['cachePool'] = "";
}
/* Is cachePool2 defined? If it is we need to show the cache pool 2 device name instead of 'Array'. */
if ($share['cachePool2']) {
$array = compress(my_disk($share['cachePool2'],$display['raw']));