Fix #17930 : input boxes can be empty as previously

This commit is contained in:
lmarcouiller 2021-06-15 15:13:25 +02:00
parent a1e6236df0
commit d070c5b75d

View File

@ -55,7 +55,7 @@ if (GETPOST('confirmation')) {
$tmphorairesi = GETPOST('horaires'.$i, 'array');
if (!is_array($tmphorairesi) || empty($tmphorairesi[$j])) {
if (!is_array($tmphorairesi)) {
$errheure[$i][$j] = true;
$erreur = true;
continue;
@ -155,7 +155,7 @@ if (GETPOST('confirmation')) {
}
}
if (isset($errheure)) {
if (!empty($errheure)) {
setEventMessages($langs->trans("ErrorBadFormat"), null, 'errors');
}
}