diff --git a/plugins/filebrowser/classes/View.php b/plugins/filebrowser/classes/View.php index 14fe1089..b5675497 100644 --- a/plugins/filebrowser/classes/View.php +++ b/plugins/filebrowser/classes/View.php @@ -168,7 +168,7 @@ public function folderLink($folder, array $folders) global $sn; $class = 'folder'; - if (substr($this->currentDirectory, 0, strlen($folder)) == $folder) { + if (substr($this->currentDirectory, 0, strlen("$folder/")) == "$folder/") { $class = 'openFolder'; } $temp = explode('/', $folder);