mirror of
https://github.com/unraid/webgui.git
synced 2026-01-04 00:19:57 -06:00
Array only share not showing properly in share listing.
This commit is contained in:
@@ -214,8 +214,8 @@ foreach ($shares as $name => $share) {
|
||||
$share_valid = true;
|
||||
}
|
||||
|
||||
/* When there is no array, all pools are treated as 'only' cache. */
|
||||
if (($poolsOnly) && (! $share['cachePool2'])) {
|
||||
/* When there is no array, all pools are treated as 'only' cache. If useCache is "no" with an array, this is invalid and useCache has to be 'only'. */
|
||||
if ((($poolsOnly) && (! $share['cachePool2'])) || ((! $poolsOnly) && ($share['cachePool']) && ($share['useCache'] == "no"))) {
|
||||
$share['useCache'] = 'only';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user