Update commondocgenerator.class.php

This commit is contained in:
Laurent Destailleur 2017-10-02 00:36:15 +02:00 committed by GitHub
parent f15ce54c05
commit 48c3d0e3f2

View File

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