diff --git a/templates/container.class.tpl b/templates/container.class.tpl index 11a2b9d2..97159ae9 100644 --- a/templates/container.class.tpl +++ b/templates/container.class.tpl @@ -139,6 +139,10 @@ class %%CLASSNAME%% extends PluginFieldsAbstractContainerInstance ] )->current(); + if ($related_item === null) { + continue; + } + //update if needed if ($fields['is_recursive'] != $related_item['is_recursive']) { $stmt->bind_param(