diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php
index ce68665cb69..443b0bc4be4 100644
--- a/htdocs/product/fiche.php
+++ b/htdocs/product/fiche.php
@@ -1380,7 +1380,7 @@ print "\n
\n";
* All the "Add to" areas
*/
-if ($id && ($action == '' || $action == 'view') && $object->status)
+if ($object->id && ($action == '' || $action == 'view') && $object->status)
{
print '