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