FIX #yogosha12266

This commit is contained in:
Laurent Destailleur
2022-09-09 13:58:54 +02:00
parent 999e5861e3
commit b23ab2cb71
55 changed files with 316 additions and 317 deletions

View File

@@ -4955,8 +4955,9 @@ function dol_print_error($db = '', $error = '', $errors = null)
$out .= "<br>\n";
}
// Return a http error code if possible
// Return a http header with error code if possible
if (!headers_sent()) {
top_httphead();
http_response_code(500);
}