diff options
author | Patrik Kernstock <info@pkern.at> | 2017-05-24 15:08:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 15:08:29 +0200 |
commit | dba89270118b7a09345f71980b2c079451649eaa (patch) | |
tree | 4efc87674b5da2b2fb3d7db13d45d8fe0bc26184 /settings/BackgroundJobs | |
parent | 6cc26efbc5329066cfd0a197023d2772311c85c0 (diff) | |
download | nextcloud-server-dba89270118b7a09345f71980b2c079451649eaa.tar.gz nextcloud-server-dba89270118b7a09345f71980b2c079451649eaa.zip |
Fix #5059 by adding sanity checks before using var
Signed-off-by: Patrik Kernstock <info@pkern.at>
Diffstat (limited to 'settings/BackgroundJobs')
-rw-r--r-- | settings/BackgroundJobs/VerifyUserData.php | 2 |
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; } |