From 75fa37cde9e77f0a562ce9f643a19573e7378982 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 30 Nov 2012 00:41:31 +0100 Subject: [PATCH] Fix: avoid warning in strict mode --- htdocs/fourn/commande/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index ddb6c5a532c..e7e4c1d6161 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -943,7 +943,7 @@ $productstatic = new Product($db); $now=dol_now(); -if ($object->id > 0) +if (! empty($object->id)) { $author = new User($db); $author->fetch($object->user_author_id);