From baa46cd50208c4fd3d282564347daf4d73144510 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 16 Sep 2020 02:53:44 +0200 Subject: [PATCH] Fix syntax error --- htdocs/product/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 535d39a34c6..70b169dc326 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -956,7 +956,7 @@ 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', 'int) ? GETPOST('country_id', 'int') : null; + $object->country_id = GETPOSTISSET('country_id') ? GETPOST('country_id', 'int') : null; if ($object->country_id > 0) { $tmparray = getCountry($object->country_id, 'all');