From f9e7f40ec5a077907cb1b98e862d023ae9833165 Mon Sep 17 00:00:00 2001 From: Tasos Katsoulas Date: Mon, 4 Nov 2024 13:58:13 +0200 Subject: [PATCH] Improve aaq config check --- kitsune/questions/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitsune/questions/views.py b/kitsune/questions/views.py index b3c5a7dff92..1f458796a28 100644 --- a/kitsune/questions/views.py +++ b/kitsune/questions/views.py @@ -165,7 +165,7 @@ def question_list(request, product_slug=None, topic_slug=None): multiple = (len(products) > 1) or ("all" in product_slugs) product_with_aaq = False - if multiple: + if products and not multiple: product_with_aaq = has_aaq_config(products[0]) topics = []