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)