From 85c43cf66c610e1fe950cd3c4da09f0546540663 Mon Sep 17 00:00:00 2001 From: dlandon Date: Sat, 7 Dec 2024 09:13:27 -0600 Subject: [PATCH] Array only share not showing properly in share listing. --- emhttp/plugins/dynamix/include/ShareList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/ShareList.php b/emhttp/plugins/dynamix/include/ShareList.php index 20b64fb85..148d53e7e 100644 --- a/emhttp/plugins/dynamix/include/ShareList.php +++ b/emhttp/plugins/dynamix/include/ShareList.php @@ -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'; }