Fix warning

This commit is contained in:
Laurent Destailleur 2022-12-30 13:51:58 +01:00
parent 54936c916c
commit 24e3e278ed

View File

@ -5058,7 +5058,7 @@ function dol_print_error($db = '', $error = '', $errors = null)
} elseif (is_array($errors)) {
$errors = array_merge(array($error), $errors);
} else {
$errors = array_merge(array($error));
$errors = array_merge(array($error), array($errors));
}
foreach ($errors as $msg) {