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:
parent
0ed02da5dd
commit
fd0c102f24
|
@ -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