From 5007565ccc3d395d2bc69e4f6a8447c40af43094 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 2 Feb 2024 15:20:39 +0200 Subject: [PATCH] fix file tree overwrite --- src/Dokuwiki/Filesystem.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Dokuwiki/Filesystem.php b/src/Dokuwiki/Filesystem.php index 9087a4c..03aa337 100644 --- a/src/Dokuwiki/Filesystem.php +++ b/src/Dokuwiki/Filesystem.php @@ -182,7 +182,10 @@ class Filesystem { case is_dir($file): - $this->_tree[$path] = []; + if (!isset($this->_tree[$path])) + { + $this->_tree[$path] = []; + } $this->_index($file);