diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 5ed68d6c3..188111924 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -2290,6 +2290,7 @@ $(document).ready(function() { $orderdir = (isset($orderby[1]) ? ($orderby[1] == 'd' ? 'desc' : 'asc') : 'asc'); if($folderid && ($folder = $this->params['dms']->getFolder($folderid))) { + $path = null; if(!$partialtree) { $path = $folder->getPath(); /* Get the first folder (root folder) of path */ diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 54f7c6c41..a9cb5029c 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -2317,6 +2317,7 @@ $(document).ready(function() { $orderdir = (isset($orderby[1]) ? ($orderby[1] == 'd' ? 'desc' : 'asc') : 'asc'); if($folderid && ($folder = $this->params['dms']->getFolder($folderid))) { + $path = null; if(!$partialtree) { $path = $folder->getPath(); /* Get the first folder (root folder) of path */