Merged in bugfix/PMCORE-4046 (pull request #8633)

PMCORE-4046

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Gutierrez
2023-02-03 13:24:06 +00:00
committed by Julio Cesar Laura Avendaño
3 changed files with 8 additions and 2 deletions

View File

@@ -469,8 +469,7 @@ try {
if (is_array($row) || $_POST['NEW_USERNAME'] == '') {
$color = 'red';
$img = '/images/delete.png';
$dataVar = ['USER_ID' => $_POST['NEW_USERNAME']];
$text = G::LoadTranslation('ID_USERNAME_ALREADY_EXISTS', $dataVar);
$text = G::LoadTranslation('ID_INVALID_USERNAME');
$text = ($_POST['NEW_USERNAME'] == '') ? G::LoadTranslation('ID_MSG_ERROR_USR_USERNAME') : $text;
$response['exists'] = true;
} else {