mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #13252 from nextcloud/backport/13240/stable15
[stable15] Add default values when parsing account data
This commit is contained in:
commit
f81fdd4b5c
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ class AccountManager implements IAccountManager {
|
|||
private function parseAccountData(IUser $user, $data): Account {
|
||||
$account = new Account($user);
|
||||
foreach($data as $property => $accountData) {
|
||||
$account->setProperty($property, $accountData['value'] ?? '', $accountData['scope'], $accountData['verified']);
|
||||
$account->setProperty($property, $accountData['value'] ?? '', $accountData['scope'] ?? self::VISIBILITY_PRIVATE, $accountData['verified'] ?? self::NOT_VERIFIED);
|
||||
}
|
||||
return $account;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue