aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMarc Hefter <marchefter@march42.net>2023-04-24 10:14:17 +0200
committerGitHub <noreply@github.com>2023-04-24 10:14:17 +0200
commitaa210365ec5e3d16b1275c1895d1a56780aeafaf (patch)
tree0aa9c6e8435aa2f9a97cdaf63b096271de6bbc6f /apps
parente83520617d19833e8b85424c7cb51f5773ec20d0 (diff)
downloadnextcloud-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.php2
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);