From e8ea213503be7bd550b40ec9c0774bf7c6dfa411 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 30 Dec 2022 13:51:58 +0100 Subject: [PATCH] Fix warning --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 85cb8a9cdfe..9f67a0e3909 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -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) {