diff options
author | Marc Hefter <marchefter@march42.net> | 2023-04-24 10:14:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 10:14:17 +0200 |
commit | aa210365ec5e3d16b1275c1895d1a56780aeafaf (patch) | |
tree | 0aa9c6e8435aa2f9a97cdaf63b096271de6bbc6f /apps | |
parent | e83520617d19833e8b85424c7cb51f5773ec20d0 (diff) | |
download | nextcloud-server-aa210365ec5e3d16b1275c1895d1a56780aeafaf.tar.gz nextcloud-server-aa210365ec5e3d16b1275c1895d1a56780aeafaf.zip |
Update apps/user_ldap/lib/User/User.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marc Hefter <marchefter@march42.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/User/User.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index 20a7baa66dd..c79c2b76f41 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -251,7 +251,7 @@ class User { $attr = strtolower($this->connection->ldapAttributePhone); if (!empty($attr)) { // attribute configured $profileValues[\OCP\Accounts\IAccountManager::PROPERTY_PHONE] - = (isset($ldapEntry[$attr]) ? $ldapEntry[$attr][0] : ""); + = $ldapEntry[$attr][0] ?? ""; } //User Profile Field - website $attr = strtolower($this->connection->ldapAttributeWebsite); |