Clean code

This commit is contained in:
Laurent Destailleur 2022-07-26 13:14:12 +02:00
parent ba52b3314b
commit c42eaaf16c
2 changed files with 2 additions and 2 deletions

View File

@ -1153,7 +1153,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
$errors[] = $langs->transnoentitiesnoconv('ErrorEndDateCP');
break;
case 'SQL_Create':
$errors[] = $langs->transnoentitiesnoconv('ErrorSQLCreateCP').' '.$_GET['msg'];
$errors[] = $langs->transnoentitiesnoconv('ErrorSQLCreateCP');
break;
case 'CantCreate':
$errors[] = $langs->transnoentitiesnoconv('CantCreateCP');

View File

@ -385,7 +385,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
$errors[] = $langs->trans('ErrorEndDateCP');
break;
case 'SQL_Create':
$errors[] = $langs->trans('ErrorSQLCreateCP').' <b>'.htmlentities($_GET['msg']).'</b>';
$errors[] = $langs->trans('ErrorSQLCreateCP');
break;
case 'CantCreate':
$errors[] = $langs->trans('CantCreateCP');