From a6278fb67149ef6434333ea4b71826020dfb3231 Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 17 Oct 2023 09:51:47 +0200 Subject: [PATCH] device_list: fix missing parameter --- 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 dbc5732a6..d290b8a56 100755 --- a/emhttp/plugins/dynamix/nchan/device_list +++ b/emhttp/plugins/dynamix/nchan/device_list @@ -461,7 +461,7 @@ while (true) { $echo[$n] .= ""._('Slots')."".cache_slots($off,$pool,_var($cache[$pool],'devicesSb'),_var($cache[$pool],'slots',0)).""; $zfsPool = strstr(_var($cache[$pool],'fsType'),'zfs') && !isSubpool($pool); if ($zfsPool) { - $current_subpools = array_filter($pools, function ($element) { + $current_subpools = array_filter($pools, function ($element) use ($pool) { return strpos($element, "$pool~")!==false; }); if (count($current_subpools) < count($subpools)) {