diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-12-19 07:38:01 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-12-23 16:33:02 +0100 |
commit | 0f911e2d13bc227308e4970a3ecf259b98ea9276 (patch) | |
tree | a559adbda0ec1fec25cc14e19412ac5fde429254 /lib/private/Accounts | |
parent | f5286bcb070a003bbffc6cb67410b3364865a02a (diff) | |
download | nextcloud-server-0f911e2d13bc227308e4970a3ecf259b98ea9276.tar.gz nextcloud-server-0f911e2d13bc227308e4970a3ecf259b98ea9276.zip |
Add default values when parsing account data
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Accounts')
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index a057cb4fc27..408f070dc0d 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -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; } |