From 70d3d5a65639f401fa0194cfd93222b499cf841e Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Mon, 13 May 2024 10:59:04 -0700 Subject: [PATCH] fix: Present warning text for pool replacement devices (that they will be overwritten) --- emhttp/plugins/dynamix/nchan/device_list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/nchan/device_list b/emhttp/plugins/dynamix/nchan/device_list index 9e7807055..62fad349d 100755 --- a/emhttp/plugins/dynamix/nchan/device_list +++ b/emhttp/plugins/dynamix/nchan/device_list @@ -184,7 +184,7 @@ function array_offline(&$disk, $pool='') { $text = ""._('All existing data on this device will be OVERWRITTEN when array is Started').""; if (_var($disk,'type')=='Cache') { if (!str_contains(_var($diks[$pool],'state'),'ERROR:')) { - if (_var($diks[$pool],'state')!='NEW_ARRAY') { + if (_var($disks[$pool],'state')!='NEW_ARRAY') { if (in_array(_var($disk,'status'),$status)) $warning = $text; } }