diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index ccfec0d3d..9dcbdd381 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -1777,7 +1777,7 @@ class AttributeLinkedSet extends AttributeDefinition try { /** @var ormLinkSet $sValue */ - if ($sValue->Count() === 0) { + if (is_null($sValue) || $sValue->Count() === 0) { return ''; }