From 5cd09fbc7d778a3eee888808a04a757cdbbf0425 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 9 Nov 2018 19:44:41 +0100 Subject: [PATCH] Fixed: flash share warning is given when SMB is disabled --- plugins/dynamix/include/DeviceList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/DeviceList.php b/plugins/dynamix/include/DeviceList.php index 8103c63c8..60005951c 100644 --- a/plugins/dynamix/include/DeviceList.php +++ b/plugins/dynamix/include/DeviceList.php @@ -359,7 +359,7 @@ case 'flash': $data = explode(' ',$diskio[$disk['device']] ?? '0 0'); $disk['fsUsed'] = $disk['fsSize']-$disk['fsFree']; $flash = &$sec['flash']; $share = ""; - if ($flash['export']=='e' && $flash['security']=='public') + if ($var['shareSMBEnabled']=='yes' && $flash['export']=='e' && $flash['security']=='public') $share = "Flash device is set as public share
Please change share SMB security
"; echo ""; echo "".$share.device_info($disk,true)."";