From c42eaaf16cd0cadc823e12c8a5609c4b7df47b39 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 26 Jul 2022 13:14:12 +0200 Subject: [PATCH] Clean code --- htdocs/holiday/card.php | 2 +- htdocs/holiday/card_group.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php index 566864c765a..05fca97348a 100644 --- a/htdocs/holiday/card.php +++ b/htdocs/holiday/card.php @@ -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'); diff --git a/htdocs/holiday/card_group.php b/htdocs/holiday/card_group.php index 5e571f077c8..950e2342de8 100644 --- a/htdocs/holiday/card_group.php +++ b/htdocs/holiday/card_group.php @@ -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').' '.htmlentities($_GET['msg']).''; + $errors[] = $langs->trans('ErrorSQLCreateCP'); break; case 'CantCreate': $errors[] = $langs->trans('CantCreateCP');