summaryrefslogtreecommitdiffstats
path: root/nextcloud-b129d5d-php71-backport.patch
diff options
context:
space:
mode:
authorJames Hogarth <james.hogarth@gmail.com>2017-02-21 14:30:00 +0000
committerJames Hogarth <james.hogarth@gmail.com>2017-02-21 14:30:00 +0000
commit260614d225ad68cf4bb1bc31c2480b2ccd169d56 (patch)
tree50e35459d24d7c7972e5491dd03a19bd3197ce21 /nextcloud-b129d5d-php71-backport.patch
parent3545d203eaf0f4c0bff942e50004f8785f1cd7b3 (diff)
import of srpm from review
Diffstat (limited to 'nextcloud-b129d5d-php71-backport.patch')
-rw-r--r--nextcloud-b129d5d-php71-backport.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/nextcloud-b129d5d-php71-backport.patch b/nextcloud-b129d5d-php71-backport.patch
new file mode 100644
index 0000000..734b51c
--- /dev/null
+++ b/nextcloud-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);
+