From e2195a2f6d6cb0cef35e08d57e03a3420380cac2 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 16 Jun 2025 08:30:31 +0200 Subject: fix(sharing): fix json decoding the list of groups excluded from sharing json_decode() returns stdclass by default instead of an associative object, which can't be used for array_diff or array_intersect later Signed-off-by: Thomas Citharel --- lib/private/Share20/ShareDisableChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/Share20/ShareDisableChecker.php b/lib/private/Share20/ShareDisableChecker.php index 8cf523b8b31..286be7a1036 100644 --- a/lib/private/Share20/ShareDisableChecker.php +++ b/lib/private/Share20/ShareDisableChecker.php @@ -38,7 +38,7 @@ class ShareDisableChecker { if ($excludeGroups && $excludeGroups !== 'no') { $groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); - $excludedGroups = json_decode($groupsList); + $excludedGroups = json_decode($groupsList, true); if (is_null($excludedGroups)) { $excludedGroups = explode(',', $groupsList); $newValue = json_encode($excludedGroups); -- cgit v1.2.3