diff --git a/html/search.ejs b/html/search.ejs
index cdb86b7f..24940b8b 100644
--- a/html/search.ejs
+++ b/html/search.ejs
@@ -969,7 +969,7 @@ font-weight: 1000;">dont.
display: none;
}
- <% if (invresults.length < 1) { %>
+ <% if (invresults?.length < 1) { %>