We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0bfe72 commit 238b4fcCopy full SHA for 238b4fc
1 file changed
ajax/homepage_wizard.php
@@ -35,14 +35,15 @@
35
exit;
36
}
37
38
+if (!isset($_REQUEST['wizard'])) {
39
+ http_response_code(400);
40
+ die();
41
+}
42
+
43
if ($_REQUEST['wizard'] == 'categories') {
44
plugin_formcreator_showWizardCategories();
45
} else if ($_REQUEST['wizard'] == 'forms') {
- if (isset($_REQUEST['categoriesId'])) {
- $categoriesId = (int) $_REQUEST['categoriesId'];
- } else {
- $categoriesId = 0;
- }
46
+ $categoriesId = (int) ($_REQUEST['categoriesId'] ?? 0);
47
$keywords = isset($_REQUEST['keywords']) ? $_REQUEST['keywords'] : '';
48
$helpdeskHome = isset($_REQUEST['helpdeskHome']) ? $_REQUEST['helpdeskHome'] != '0' : false;
49
plugin_formcreator_showWizardForms($categoriesId, $keywords, $helpdeskHome);
0 commit comments