summaryrefslogtreecommitdiffstats
path: root/owncloud-b129d5d-php71-backport.patch
diff options
context:
space:
mode:
Diffstat (limited to 'owncloud-b129d5d-php71-backport.patch')
-rw-r--r--owncloud-b129d5d-php71-backport.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/owncloud-b129d5d-php71-backport.patch b/owncloud-b129d5d-php71-backport.patch
new file mode 100644
index 0000000..734b51c
--- /dev/null
+++ b/owncloud-b129d5d-php71-backport.patch
@@ -0,0 +1,13 @@
+diff --git a/settings/Controller/SecuritySettingsController.php b/settings/Controller/SecuritySettingsController.php
+index 88b2803..5c6f174 100644
+--- a/settings/Controller/SecuritySettingsController.php
++++ b/settings/Controller/SecuritySettingsController.php
+@@ -60,7 +60,7 @@ protected function returnSuccess() {
+ * @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);
+