diff --git a/htdocs/product/stats/card.php b/htdocs/product/stats/card.php index 52ffa0a58c8..e7c50e8309e 100644 --- a/htdocs/product/stats/card.php +++ b/htdocs/product/stats/card.php @@ -75,9 +75,9 @@ if (empty($search_year)) $search_year=$currentyear; $form = new Form($db); $htmlother = new FormOther($db); - $object = new Product($db); -if (! $id) + +if (! $id && empty($ref)) { llxHeader("",$langs->trans("ProductStatistics"));