diff --git a/templates/default/customer/customerdocuments.html b/templates/default/customer/customerdocuments.html
index 01d36f360f..e74e42778a 100644
--- a/templates/default/customer/customerdocuments.html
+++ b/templates/default/customer/customerdocuments.html
@@ -156,7 +156,7 @@
url=$url external=true
text=""}
{/if}
- {if count($doc.attachments) > 1 || !$docattach.type < 1}
+ {if $doc.attachments|size > 1 || $docattach.type < 1}