diff --git a/product/ZSQLCatalog/ZSQLCatalog.py b/product/ZSQLCatalog/ZSQLCatalog.py index e8c4682392e92fbc5e6e5b89dee1d05bd19b26ad..1047cdc04666b5193cdd276b19ca659bc726aec0 100644 --- a/product/ZSQLCatalog/ZSQLCatalog.py +++ b/product/ZSQLCatalog/ZSQLCatalog.py @@ -716,8 +716,8 @@ class ZCatalog(Folder, Persistent, Implicit): archive_list = [] portal_archives = getattr(self, 'portal_archives', None) if portal_archives is not None: - if len(self.portal_archives): - archive_list = self.portal_archives.getArchiveList() + if len(portal_archives): + archive_list = portal_archives.getArchiveList() catalog_dict = {}