Merge pull request #5095 from patschi/patch-1
Fix #5059 by adding sanity checks before using var
This commit is contained in:
commit
53c8e98f69
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue