Fix #5059 by adding sanity checks before using var
Signed-off-by: Patrik Kernstock <info@pkern.at>
This commit is contained in:
parent
6cc26efbc5
commit
dba8927011
|
@ -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