From dfb4117bb526f4d063a4078ad386c80c1e0ad00a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 1 Mar 2014 14:58:06 +0100 Subject: [PATCH] Fix: Invalid image link --- htdocs/product/stock/mouvement.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php index f8135b69566..5b7b56d6720 100644 --- a/htdocs/product/stock/mouvement.php +++ b/htdocs/product/stock/mouvement.php @@ -236,9 +236,12 @@ if ($resql) // Country print ''.$langs->trans('Country').''; - $img=picto_from_langcode($entrepot->country_code); - print ($img?$img.' ':''); - print $entrepot->country; + if (! empty($entrepot->country_code)) + { + $img=picto_from_langcode($entrepot->country_code); + print ($img?$img.' ':''); + print $entrepot->country; + } print ''; // Status