[Legacy] Fix strict equality

This commit is contained in:
y.yerli 2024-07-15 16:04:49 +03:00
parent 558b86b530
commit ee7b890e25

View file

@ -1134,7 +1134,7 @@ function showFullName()
$sysPref = !empty($sugar_config['use_real_names']);
$userPref = (is_object($current_user)) ? $current_user->getPreference('use_real_names') : null;
if ($userPref != null && $userPref != 'off') {
if ($userPref != null && $userPref !== 'off') {
$showFullName = ($userPref == 'on');
} else {
$showFullName = $sysPref;