Merge pull request #5095 from patschi/patch-1

Fix #5059 by adding sanity checks before using var
This commit is contained in:
Björn Schießle 2017-05-26 12:10:57 +02:00 committed by GitHub
commit 53c8e98f69
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}