summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2017-05-26 12:10:57 +0200
committerGitHub <noreply@github.com>2017-05-26 12:10:57 +0200
commit53c8e98f69e6d3d2413b5e9686ecadf9f1316a73 (patch)
tree90aafa852975a50e135479c9ab4f56758fc61653 /settings
parentde953b4d749cfd9d2a792d106278b00476cd6286 (diff)
parentdba89270118b7a09345f71980b2c079451649eaa (diff)
downloadnextcloud-server-53c8e98f69e6d3d2413b5e9686ecadf9f1316a73.tar.gz
nextcloud-server-53c8e98f69e6d3d2413b5e9686ecadf9f1316a73.zip
Merge pull request #5095 from patschi/patch-1
Fix #5059 by adding sanity checks before using var
Diffstat (limited to 'settings')
-rw-r--r--settings/BackgroundJobs/VerifyUserData.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/BackgroundJobs/VerifyUserData.php b/settings/BackgroundJobs/VerifyUserData.php
index 8c02ae1727c..5e5b2b9c678 100644
--- a/settings/BackgroundJobs/VerifyUserData.php
+++ b/settings/BackgroundJobs/VerifyUserData.php
@@ -231,7 +231,7 @@ class VerifyUserData extends Job {
$body = json_decode($response->getBody(), true);
- if ($body['federationId'] === $cloudId) {
+ if (is_array($body) && isset($body['federationId']) && $body['federationId'] === $cloudId) {
return $body;
}