From dd1fc4a04e8f19f6ab236e85bdb87558094b2681 Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 26 Oct 2023 00:48:49 +0200 Subject: [PATCH] Fix subpool errors --- emhttp/plugins/dynamix/nchan/device_list | 1 + 1 file changed, 1 insertion(+) diff --git a/emhttp/plugins/dynamix/nchan/device_list b/emhttp/plugins/dynamix/nchan/device_list index e1066760e..872097434 100755 --- a/emhttp/plugins/dynamix/nchan/device_list +++ b/emhttp/plugins/dynamix/nchan/device_list @@ -454,6 +454,7 @@ while (true) { $off = false; foreach ($cache as $disk) if (prefix(_var($disk,'name'))==$pool) { $echo[$n] .= array_offline($disk,$pool); + // tilde is not allowed in array key - replace it $diskname = str_replace('~','_-_',_var($disk,'name')); if (isset($log[$diskname])) $off |= ($log[$diskname] != _var($disk,'id')); elseif ($diskname) $log[$diskname] = _var($disk,'id'); }