Backported Fix #5059 to stable12 by adding sanity checks before using var

Signed-off-by: Patrik Kernstock <info@pkern.at>
This commit is contained in:
Patrik Kernstock 2017-05-26 12:16:46 +02:00 committed by GitHub
parent 0ed02da5dd
commit fd0c102f24
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;
}