From 3b2840f960fb0b8d96e7fdf2fd9f8a70747d5820 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 16 Dec 2023 18:57:38 +0100 Subject: [PATCH] device_list: fix regression error --- emhttp/plugins/dynamix/nchan/device_list | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/emhttp/plugins/dynamix/nchan/device_list b/emhttp/plugins/dynamix/nchan/device_list index 9b8ec3f70..a0e5cf81b 100755 --- a/emhttp/plugins/dynamix/nchan/device_list +++ b/emhttp/plugins/dynamix/nchan/device_list @@ -421,9 +421,10 @@ while (true) { $crypto = false; $echo = []; foreach ($disks as $disk) { - if ($disk['type']=='Flash') continue; - ${$disk['type']}[] = $disk; - $crypto |= _var($disk,'luksState',0)!=0 || vfs_luks(_var($disk,'fsType')); + $type = $disk['type']; + if ($type=='Flash') continue; + ${$type}[$disk['name']] = $disk; + if ($type!='Parity') $crypto |= _var($disk,'luksState',0)!=0 || vfs_luks(_var($disk,'fsType')); } $pools = array_unique(array_map('prefix',array_column($Cache,'name')));