From 7c9e1c98ecea84b24307f32b5b20d119cfd7fc94 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 20 Oct 2020 20:16:57 +0200 Subject: [PATCH] fix umount to deal with user-specific mounts too --- api/src/Vfs/Base.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/src/Vfs/Base.php b/api/src/Vfs/Base.php index f0ccc8a2bd..b77e2ce216 100644 --- a/api/src/Vfs/Base.php +++ b/api/src/Vfs/Base.php @@ -178,10 +178,8 @@ class Base if (self::LOG_LEVEL > 0) error_log(__METHOD__.'('.array2string($path).') NOT mounted!'); return false; // $path not mounted } - unset(self::$fstab[$path]); - - Config::save_value('vfs_fstab',self::$fstab,'phpgwapi'); - $GLOBALS['egw_info']['server']['vfs_fstab'] = self::$fstab; + unset(self::$fstab[$path], $GLOBALS['egw_info']['server']['vfs_fstab'][$path]); + Config::save_value('vfs_fstab', $GLOBALS['egw_info']['server']['vfs_fstab'],'phpgwapi'); // invalidate session cache if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited {