diff --git a/lib/Service/ProvisioningService.php b/lib/Service/ProvisioningService.php index 524ebf15..cf73551d 100644 --- a/lib/Service/ProvisioningService.php +++ b/lib/Service/ProvisioningService.php @@ -193,6 +193,8 @@ public function provisionUser(string $tokenUserId, int $providerId, object $idTo $addressArray[$regionAttribute] ?? '', $addressArray[$countryAttribute] ?? '', ]; + } else { + $address = null; } } elseif ($street !== null || $postalcode !== null || $locality !== null || $region !== null || $country !== null) { // Concatenate the address components