diff --git a/htdocs/theme/raw/plugintype/artefact/annotation/templates/import/annotations.tpl b/htdocs/theme/raw/plugintype/artefact/annotation/templates/import/annotations.tpl
index 61a5997abbf8e159bd9a8cff73b71b9ac26a559c..ff4d739c27c6bc0662179fd8bc2fd85a78316ddf 100644
--- a/htdocs/theme/raw/plugintype/artefact/annotation/templates/import/annotations.tpl
+++ b/htdocs/theme/raw/plugintype/artefact/annotation/templates/import/annotations.tpl
@@ -1,4 +1,4 @@
-{if count($entryannotations)}
+{if is_array($entryannotations) && count($entryannotations)}
{str tag=Annotation section=artefact.annotation}
{foreach from=$entryannotations item=annotation}
diff --git a/htdocs/theme/raw/plugintype/artefact/file/templates/import/files.tpl b/htdocs/theme/raw/plugintype/artefact/file/templates/import/files.tpl
index d9ecdd09988699847977044c801c3094c2618eff..a55d93fadb97481a36883c761c00bb0e9a6e88b2 100644
--- a/htdocs/theme/raw/plugintype/artefact/file/templates/import/files.tpl
+++ b/htdocs/theme/raw/plugintype/artefact/file/templates/import/files.tpl
@@ -1,4 +1,4 @@
-{if count($entryfiles)}
+{if is_array($entryfiles) && count($entryfiles)}
{str tag=file section=artefact.file}
{foreach from=$entryfiles item=file}
diff --git a/htdocs/theme/raw/plugintype/artefact/internal/templates/import/profilefields.tpl b/htdocs/theme/raw/plugintype/artefact/internal/templates/import/profilefields.tpl
index cf0f677a3e23572d1ce120cd639081d64d3b2297..19d932361f353cad126b33122158352d4c7ce9cd 100644
--- a/htdocs/theme/raw/plugintype/artefact/internal/templates/import/profilefields.tpl
+++ b/htdocs/theme/raw/plugintype/artefact/internal/templates/import/profilefields.tpl
@@ -2,7 +2,7 @@
{str tag=profile section=artefact.internal}