mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 23:20:35 -06:00
Merge pull request #1842 from dlandon/rework-share-list
Fix condition where useCache is 'no' when there is no array.
This commit is contained in:
@@ -214,12 +214,9 @@ foreach ($shares as $name => $share) {
|
||||
$share_valid = true;
|
||||
}
|
||||
|
||||
/* Check if poolsOnly is true. */
|
||||
if ($poolsOnly) {
|
||||
/* If useCache is set to 'yes' or 'prefer', change it to 'only'. */
|
||||
if ((($share['useCache'] == 'yes') || ($share['useCache'] == 'prefer')) && (!$share['cachePool2'])) {
|
||||
$share['useCache'] = 'only';
|
||||
}
|
||||
/* When there is no array, all pools are treated as 'only' cache. */
|
||||
if (($poolsOnly) && (! $share['cachePool2'])) {
|
||||
$share['useCache'] = 'only';
|
||||
}
|
||||
|
||||
$row++;
|
||||
|
||||
Reference in New Issue
Block a user