From d8db4f215eab80d41eb6bbabb6681ea0929b48ee Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 5 Jun 2024 23:20:19 +0800 Subject: [PATCH] improve share dir delete --- plugins/Common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Common.php b/plugins/Common.php index 5714635..114e76f 100644 --- a/plugins/Common.php +++ b/plugins/Common.php @@ -222,6 +222,9 @@ Class Common { $dirs_after_delete = $friends_dirs; if (in_array($share_dir, $friends_dirs)) { $dirs_after_delete = array_diff($friends_dirs, array($share_dir)); + if (is_object($dirs_after_delete)) { + $dirs_after_delete = self::dictToArray($dirs_after_delete); + } }else { return true; }