Fix #5059 by adding sanity checks before using var

Signed-off-by: Patrik Kernstock <info@pkern.at>
This commit is contained in:
Patrik Kernstock 2017-05-24 15:08:29 +02:00 committed by GitHub
parent 6cc26efbc5
commit dba8927011
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;
}