Skip to content

Commit

Permalink
Merge pull request #948 from nextcloud/fix/947/empty-address
Browse files Browse the repository at this point in the history
Fix/947/empty address
  • Loading branch information
julien-nc authored Oct 10, 2024
2 parents c923428 + 8bacc23 commit 87bf9f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Service/ProvisioningService.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,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
Expand Down

0 comments on commit 87bf9f3

Please sign in to comment.