Skip to content

Commit

Permalink
Update commondocgenerator.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 1, 2017
1 parent 95cc007 commit f15ce54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/commondocgenerator.class.php
Expand Up @@ -419,7 +419,7 @@ function get_substitutionarray_object($object,$outputlangs,$array_key='object')
}

// 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))
{
Expand Down

0 comments on commit f15ce54

Please sign in to comment.