From 165272d0e1204b272f301412bf89a0a4db3bfc65 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Thu, 21 Aug 2025 15:39:06 +0200 Subject: [PATCH] Fix CI --- htdocs/core/lib/functions.lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index cd810b12208..604baf96e8e 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2050,14 +2050,14 @@ function dolPrintText($s) * To output a text inside an attribute, you can use dolPrintHTMLForAttribute() or dolPrintHTMLForTextArea() inside a textarea * With dolPrintHTML(), only content not already in HTML is encoded with HTML. * - * @param string $s String to print - * @param int $allowiframe Allow iframe tags - * @return string String ready for HTML output (sanitized and escape) + * @param int|float|string $s String to print + * @param int $allowiframe Allow iframe tags + * @return string String ready for HTML output (sanitized and escape) * @see dolPrintHTMLForAttribute(), dolPrintHTMLFortextArea() */ function dolPrintHTML($s, $allowiframe = 0) { - return dol_escape_htmltag(dol_htmlwithnojs(dol_string_onlythesehtmltags(dol_htmlentitiesbr($s), 1, 1, 1, $allowiframe)), 1, 1, 'common', 0, 1); + return dol_escape_htmltag(dol_htmlwithnojs(dol_string_onlythesehtmltags(dol_htmlentitiesbr((string) $s), 1, 1, 1, $allowiframe)), 1, 1, 'common', 0, 1); } /**