Fix: avoid warning in strict mode
This commit is contained in:
parent
c37ebea688
commit
75fa37cde9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue