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>
This commit is contained in:
Marc Hefter 2023-02-17 10:25:08 +01:00 committed by Marc Hefter
parent 44065c0fea
commit 2f76b7a3d5
No known key found for this signature in database
GPG key ID: AC45BA6A849F8610

View file

@ -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