diff --git a/src/Products/ZCatalog/ZCatalog.py b/src/Products/ZCatalog/ZCatalog.py index 1504bfc0..42209632 100644 --- a/src/Products/ZCatalog/ZCatalog.py +++ b/src/Products/ZCatalog/ZCatalog.py @@ -612,6 +612,11 @@ def searchResults(self, query=None, **kw): Search terms can be passed as a query or as keyword arguments. """ + # Check if the query is empty + if not kw: + LOG.warning("Empty query: No search parameters provided.") + raise ValueError("Empty query: No search parameters provided.") + return self._catalog.searchResults(query, **kw) security.declareProtected(search_zcatalog, '__call__')