Skip to content

Commit

Permalink
IOMAD: wrong parameter type being used for companyid
Browse files Browse the repository at this point in the history
  • Loading branch information
turf212 committed Feb 9, 2024
1 parent 196fb1b commit 0d9f46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/iomad_company_admin/iomad_courses_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
require_once($CFG->dirroot.'/user/filters/lib.php');
require_once($CFG->dirroot.'/blocks/iomad_company_admin/lib.php');

$companyid = optional_param('companyid', 0, PARAM_CLEAN);
$companyid = optional_param('companyid', 0, PARAM_INTEGER);
$coursesearch = optional_param('coursesearch', '', PARAM_CLEAN);// Search string.
$courseid = optional_param('courseid', 0, PARAM_INTEGER);
$update = optional_param('update', null, PARAM_ALPHA);
Expand Down

0 comments on commit 0d9f46e

Please sign in to comment.