Skip to content

Commit 797ce4f

Browse files
committed
fix: corrected behaviour when adding categories for the start page
1 parent 7c0677c commit 797ce4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phpmyfaq/src/phpMyFAQ/Controller/Administration/CategoryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function create(Request $request): Response
205205
->setActive((bool) Filter::filterVar($request->request->get(key: 'active'), FILTER_VALIDATE_INT))
206206
->setImage($hasUploadedImage ? $categoryImage->getFileName($categoryId, $categoryLang) : '')
207207
->setParentId($parentId)
208-
->setShowHome(Filter::filterVar($request->request->get(key: 'show_home'), FILTER_VALIDATE_INT));
208+
->setShowHome((bool) Filter::filterVar($request->request->get(key: 'show_home'), FILTER_VALIDATE_INT));
209209

210210
$permissions = [];
211211
if ('all' === Filter::filterVar($request->request->get(key: 'userpermission'), FILTER_SANITIZE_SPECIAL_CHARS)) {

0 commit comments

Comments
 (0)