From c8ac0bacade77db8713ecd57541d6c1605f237ec Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 11 Apr 2024 12:21:41 +0200 Subject: [PATCH] init variable --- views/bootstrap/class.Bootstrap.php | 1 + views/bootstrap4/class.Bootstrap4.php | 1 + 2 files changed, 2 insertions(+) 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 */