Checks if return is empty before adding wrapper classes to tainacan relationship group in value as html.
This commit is contained in:
parent
fae9e45b91
commit
957430320a
|
@ -217,7 +217,7 @@ class Relationship extends Metadata_Type {
|
|||
// item not found
|
||||
}
|
||||
}
|
||||
if(!empty($display_metas) && is_array($display_metas) && count($display_metas) > 1) {
|
||||
if(!empty($display_metas) && is_array($display_metas) && count($display_metas) > 1 && $return !== '') {
|
||||
return "<div class='tainacan-relationship-group'>{$return}</div>";
|
||||
}
|
||||
return $return;
|
||||
|
|
Loading…
Reference in New Issue