From 2f76b7a3d5b2d5712afb119db4f7af2e3bcf7bfc Mon Sep 17 00:00:00 2001 From: Marc Hefter Date: Fri, 17 Feb 2023 10:25:08 +0100 Subject: [PATCH] CleanUp: tidy checking for empty profileScope 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(-) 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