From aa210365ec5e3d16b1275c1895d1a56780aeafaf Mon Sep 17 00:00:00 2001 From: Marc Hefter Date: Mon, 24 Apr 2023 10:14:17 +0200 Subject: Update apps/user_ldap/lib/User/User.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter --- apps/user_ldap/lib/User/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/user_ldap/lib') 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); -- cgit v1.2.3