mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
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 <tcit@tcit.fr>
This commit is contained in:
parent
bf89e3adef
commit
bfd0458e86
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue