Skip to content
Snippets Groups Projects
Commit 8f4611e2 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Check if decoded JSON returned null

The value might return null resulting in a PHP error.

Fixes https://github.com/owncloud/core/issues/19542
parent 94013ffb
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ $excludeGroups = $appConfig->getValue('core', 'shareapi_exclude_groups', 'no') =
$template->assign('shareExcludeGroups', $excludeGroups);
$excludedGroupsList = $appConfig->getValue('core', 'shareapi_exclude_groups_list', '');
$excludedGroupsList = json_decode($excludedGroupsList);
$template->assign('shareExcludedGroupsList', implode('|', $excludedGroupsList));
$template->assign('shareExcludedGroupsList', !is_null($excludedGroupsList) ? implode('|', $excludedGroupsList) : '');
$template->assign('encryptionEnabled', \OC::$server->getEncryptionManager()->isEnabled());
$backends = \OC::$server->getUserManager()->getBackends();
$externalBackends = (count($backends) > 1) ? true : false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment