Skip to content

Commit

Permalink
fix: added missing check if categories are inactive, closes #3080
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jul 5, 2024
1 parent 52bd895 commit 421d58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/admin/category.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
->setDescription(Filter::filterInput(INPUT_POST, 'description', FILTER_SANITIZE_SPECIAL_CHARS))
->setUserId(Filter::filterInput(INPUT_POST, 'user_id', FILTER_VALIDATE_INT))
->setGroupId(Filter::filterInput(INPUT_POST, 'group_id', FILTER_VALIDATE_INT))
->setActive(Filter::filterInput(INPUT_POST, 'active', FILTER_VALIDATE_INT))
->setActive(Filter::filterInput(INPUT_POST, 'active', FILTER_VALIDATE_INT) ?? false)
->setImage($categoryImage->getFileName($categoryId, $categoryLang))
->setParentId($parentId)
->setShowHome(Filter::filterInput(INPUT_POST, 'show_home', FILTER_VALIDATE_INT));
Expand Down

0 comments on commit 421d58f

Please sign in to comment.