summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-06 10:29:14 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-07 22:09:32 +0200
commit1cdf4e9540b6b804fafec045371a64bd0bcfa027 (patch)
tree52af4ad749707db9f94ac5a2283130d49d83bf5b /settings/Controller
parentfb4850ffa8127168a048538ce84dd909ff6553f4 (diff)
downloadnextcloud-server-1cdf4e9540b6b804fafec045371a64bd0bcfa027.tar.gz
nextcloud-server-1cdf4e9540b6b804fafec045371a64bd0bcfa027.zip
Set default
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/SecuritySettingsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Controller/SecuritySettingsController.php b/settings/Controller/SecuritySettingsController.php
index 44e07f25a0b..d0d57437799 100644
--- a/settings/Controller/SecuritySettingsController.php
+++ b/settings/Controller/SecuritySettingsController.php
@@ -61,7 +61,7 @@ class SecuritySettingsController extends Controller {
* @return array
*/
public function trustedDomains($newTrustedDomain) {
- $trustedDomains = $this->config->getSystemValue('trusted_domains');
+ $trustedDomains = $this->config->getSystemValue('trusted_domains', []);
$trustedDomains[] = $newTrustedDomain;
$this->config->setSystemValue('trusted_domains', $trustedDomains);