fix(website_search): Avoid recursive loop if _items_to_index is falsy

This commit is contained in:
gavin 2024-08-27 14:11:37 +02:00 committed by GitHub
parent dcd14d07dc
commit 3544b87f58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ class WebsiteSearch(FullTextSearch):
self (object): FullTextSearch Instance
"""
if getattr(self, "_items_to_index", False):
if getattr(self, "_items_to_index", None) is not None:
return self._items_to_index
self._items_to_index = []