From fc59ae8d55f384906c75dad543fd5ae5c8366fd5 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 21 Aug 2017 11:30:16 +0200 Subject: [PATCH] Browser handle corner case when no dir is given --- plugins/dynamix/include/Browse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/Browse.php b/plugins/dynamix/include/Browse.php index 2cbc1cbde..324ace24c 100644 --- a/plugins/dynamix/include/Browse.php +++ b/plugins/dynamix/include/Browse.php @@ -16,7 +16,7 @@ require_once "$docroot/webGui/include/Helpers.php"; function parent_link() { global $dir,$path; - if ($dir=='/' || dirname($dir)=='/mnt' || dirname($dir)=='/mnt/user') return ""; + if (!$dir || $dir=='/' || dirname($dir)=='/mnt' || dirname($dir)=='/mnt/user') return ""; $parent = urlencode_path(dirname($dir)); return "Parent Directory..."; }