From 4407eb4787d30398545ca6e0a098bdccea0bf9be Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 19 Mar 2024 01:18:42 +0100 Subject: [PATCH] Fix arg type to set_cookie() with cast to string --- htdocs/takepos/index.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index f82945c5abb..b4541b45715 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -66,7 +66,7 @@ if (empty($_SESSION["takeposterminal"])) { if ($setterminal > 0) { $_SESSION["takeposterminal"] = $setterminal; - setcookie("takeposterminal", $setterminal, (time() + (86400 * 354)), '/', '', (empty($dolibarr_main_force_https) ? false : true), true); // Permanent takeposterminal var in a cookie + setcookie("takeposterminal", (string) $setterminal, (time() + (86400 * 354)), '/', '', (empty($dolibarr_main_force_https) ? false : true), true); // Permanent takeposterminal var in a cookie } if ($setcurrency != "") { @@ -1547,21 +1547,21 @@ if (getDolGlobalString('TAKEPOS_WEIGHING_SCALE')) { $count = 0; while ($count < $MAXPRODUCT) { print '
- onclick="MoreProducts('less')" onclick="MoreProducts('more')" > + onclick="MoreProducts('less')" onclick="MoreProducts('more')" > '; - print ''; + //echo ''; + print ''; } elseif ($count == ($MAXPRODUCT - 1)) { - //echo ''; - print ''; + //echo ''; + print ''; } else { if (!getDolGlobalString('TAKEPOS_HIDE_PRODUCT_PRICES')) { print '
'; @@ -1572,15 +1572,15 @@ if (getDolGlobalString('TAKEPOS_WEIGHING_SCALE')) { print ''; } } ?> - +
- +
...
-