2
0
forked from Wavyzz/dolibarr

Update commondocgenerator.class.php

This commit is contained in:
Laurent Destailleur
2017-10-02 00:34:55 +02:00
committed by GitHub
parent 95cc007b39
commit f15ce54c05

View File

@@ -419,7 +419,7 @@ abstract class CommonDocGenerator
}
// Fetch project information if there is a project assigned to this object
if ($object->element != "project" && $object->fk_project > 0)
if ($object->element != "project" && ! empty($object->fk_project) && $object->fk_project > 0)
{
if(!isset($object->project))
{