From 9e494d0bb3c780db858097b413b04d5ad78bc0a9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 16 Sep 2020 00:59:23 +0200 Subject: [PATCH] Update card.php --- htdocs/product/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 27178de88f9..565943455f0 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -956,8 +956,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) print load_fiche_titre($title, $linkback, $picto); // We set country_id, country_code and country for the selected country - $object->country_id = GETPOST('country_id') ?GETPOST('country_id') : null; - if ($object->country_id) + $object->country_id = GETPOST('country_id', 'int) ? GETPOST('country_id', 'int') : null; + if ($object->country_id > 0) { $tmparray = getCountry($object->country_id, 'all'); $object->country_code = $tmparray['code'];