]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update apps/user_ldap/lib/User/User.php
authorMarc Hefter <marchefter@march42.net>
Mon, 24 Apr 2023 08:14:17 +0000 (10:14 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 08:14:17 +0000 (10:14 +0200)
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marc Hefter <marchefter@march42.net>
apps/user_ldap/lib/User/User.php

index 20a7baa66dd21d49682f6d73fbe96438d6b2dbbc..c79c2b76f4191aa9bfed6315bde9880cbe0b8315 100644 (file)
@@ -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);