Skip to content

Commit db2a1da

Browse files
add check
Co-authored-by: Cédric Anne <[email protected]>
1 parent f79f623 commit db2a1da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/container.class.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ class %%CLASSNAME%% extends PluginFieldsAbstractContainerInstance
8484
]
8585
)->current();
8686
87+
if ($related_item === null) {
88+
continue;
89+
}
90+
8791
//update if needed
8892
if ($fields['entities_id'] != $related_item['entities_id']) {
8993
$stmt->bind_param(

0 commit comments

Comments
 (0)