From 956ce9ea8f47be6fe5ac587d538867f6e6fc53c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 28 Nov 2019 23:31:28 +0100 Subject: [PATCH] avoid placeid to be string or string[] Are you sure $placeid > 0 ? $placeid : 0 of type integer|string|string[] can be used in echo? --- htdocs/takepos/invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 60664b99b19..23bc09a7268 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -226,7 +226,7 @@ if ($action == 'valid' && $user->rights->facture->creer) if ($action == 'history') { - $placeid = GETPOST('placeid', 'int'); + $placeid = (int) GETPOST('placeid', 'int'); $invoice = new Facture($db); $invoice->fetch($placeid); }