Fix: avoid warning in strict mode

This commit is contained in:
Regis Houssin 2012-11-30 00:41:31 +01:00
parent c37ebea688
commit 75fa37cde9

View File

@ -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);