aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMarc Hefter <hubzilla@march42.net>2023-02-17 10:25:08 +0100
committerMarc Hefter <marchefter@gmail.com>2023-04-06 08:20:26 +0200
commit2f76b7a3d5b2d5712afb119db4f7af2e3bcf7bfc (patch)
treeadfd3410c3789c282efd7007dff2156d454264f9 /apps
parent44065c0fea21f554725d81d37cc0133717114119 (diff)
downloadnextcloud-server-2f76b7a3d5b2d5712afb119db4f7af2e3bcf7bfc.tar.gz
nextcloud-server-2f76b7a3d5b2d5712afb119db4f7af2e3bcf7bfc.zip
CleanUp: tidy checking for empty profileScope
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
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 c08847b9db8..cbe3101239e 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -247,7 +247,7 @@ class User {
//User profile visibility
$profileScope = $this->connection->ldapProfileScope;
- if (is_null($profileScope) || '' === $profileScope || 'unset' === $profileScope) {
+ if (empty($profileScope) || $profileScope === 'unset') {
$profileScope = null;
}
//User Profile Field - Phone number