diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-10-02 21:56:20 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-02 21:56:20 +0200 |
commit | 8f4611e21d334ea3135bbdbf9519236bb4b6b173 (patch) | |
tree | ca3332a653fb807e3a7c0be52d5268ad9dd3cd87 | |
parent | 94013ffb82575b625334bdb57e6a7b9d2b9634bd (diff) | |
download | nextcloud-server-8f4611e21d334ea3135bbdbf9519236bb4b6b173.tar.gz nextcloud-server-8f4611e21d334ea3135bbdbf9519236bb4b6b173.zip |
Check if decoded JSON returned null
The value might return null resulting in a PHP error.
Fixes https://github.com/owncloud/core/issues/19542
-rw-r--r-- | settings/admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/admin.php b/settings/admin.php index ec49b3e823f..aa891314fab 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -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; |