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>
pull/36565/head
Marc Hefter 3 years ago committed by Marc Hefter
parent 44065c0fea
commit 2f76b7a3d5
No known key found for this signature in database
GPG Key ID: AC45BA6A849F8610
  1. 2
      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

Loading…
Cancel
Save