From 21dba08330233c0ca31ebfee12013d7f6f8ae03b Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 10 Apr 2025 18:32:11 +0200 Subject: [PATCH] Update FileTree.php --- emhttp/plugins/dynamix/include/FileTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/include/FileTree.php b/emhttp/plugins/dynamix/include/FileTree.php index 663bd6f1b..5974b716b 100644 --- a/emhttp/plugins/dynamix/include/FileTree.php +++ b/emhttp/plugins/dynamix/include/FileTree.php @@ -64,7 +64,7 @@ if (is_low($rootdir) && is_dir($rootdir)) { $names = array_filter(scandir($rootdir, SCANDIR_SORT_NONE), function($n){return $n != '.' && $n != '..';}); if (is_top($rootdir)) { // add unassigned devices top level shares - foreach ($udShares as $name) if (is_dir($rootdir.$name) && !in_array($name, $names)) $names[] = $name; + foreach ($udShares as $name) if (is_dir($rootdir.$name) && !in_array($name, $names)) $names[] = $rootdir.$name; } natcasesort($names); foreach ($names as $name) {