From 2743c6f2d08a4977b38539e63a368933d8be13ab Mon Sep 17 00:00:00 2001 From: Thorsten Rinne Date: Mon, 21 Oct 2024 14:50:34 +0200 Subject: [PATCH] fix: corrected wrong auto activation of FAQs, closes #3203 --- phpmyfaq/api.service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpmyfaq/api.service.php b/phpmyfaq/api.service.php index afd103e638..02d7a17c01 100644 --- a/phpmyfaq/api.service.php +++ b/phpmyfaq/api.service.php @@ -422,7 +422,7 @@ $faqEntity ->setLanguage(($isTranslation === true ? $newLanguage : $languageCode)) ->setQuestion($question) - ->setActive(($autoActivate ? FAQ_SQL_ACTIVE_YES : FAQ_SQL_ACTIVE_NO)) + ->setActive($autoActivate) ->setSticky(false) ->setAnswer($answer) ->setKeywords($keywords)