summaryrefslogtreecommitdiffstats
path: root/lib/private/Accounts
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-24 12:53:18 +0200
committerJulius Härtl <jus@bitgrid.net>2018-10-24 12:53:18 +0200
commit3b3824c48604725c31107b9f98911f2c592f76f3 (patch)
tree84197307ec2217a3c1243eb7f581d51f319db6aa /lib/private/Accounts
parentded746f821360da5e99a88557f330cf4b28a48e3 (diff)
downloadnextcloud-server-3b3824c48604725c31107b9f98911f2c592f76f3.tar.gz
nextcloud-server-3b3824c48604725c31107b9f98911f2c592f76f3.zip
Use empty string instead of null
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Accounts')
-rw-r--r--lib/private/Accounts/AccountManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php
index 7f177e9c658..a057cb4fc27 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'], $accountData['verified']);
}
return $account;
}