diff --git a/plugins/dynamix/Eth0.page b/plugins/dynamix/Eth0.page index b9d4f8fe3..7ad7ad10a 100644 --- a/plugins/dynamix/Eth0.page +++ b/plugins/dynamix/Eth0.page @@ -26,7 +26,7 @@ $ports = array_map('trim', $ports); // remove non-existing ethernet ports foreach (glob('/usr/local/emhttp/webGui/Eth[1-9]*.page',GLOB_NOSORT) as $port) { - if (!in_array(basename(strtolower($port),'.page'), $ports)) { + if (!in_array(strtolower(basename($port,'.page')), $ports)) { @unlink($port); $build = true; }