We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57eb114 commit 1065c72Copy full SHA for 1065c72
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/QuestionController.php
@@ -81,7 +81,7 @@ public function toggle(Request $request): JsonResponse
81
return $this->json(['error' => Translation::get(key: 'msgNoPermission')], Response::HTTP_UNAUTHORIZED);
82
}
83
84
- $questionId = $data->questionId;
+ $questionId = (int) $data->questionId;
85
86
if (!is_null($questionId)) {
87
$isVisible = $question->getVisibility($questionId);
0 commit comments