fix: Removes debug output from form submission

Eliminates unnecessary print_r function call for form data,
enhancing code clarity and preventing potential data exposure
during form submission handling.
This commit is contained in:
Kumi 2024-11-20 15:16:24 +01:00
parent e77df1e29f
commit d58349069d
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -67,7 +67,6 @@ if ($mform->is_cancelled()) {
// Handle form cancellation, if necessary // Handle form cancellation, if necessary
redirect(new moodle_url('/admin/report.php')); redirect(new moodle_url('/admin/report.php'));
} else if ($data = $mform->get_data()) { } else if ($data = $mform->get_data()) {
print_r($data);
$userid = $data->userid; $userid = $data->userid;
// Fetch and display user grades if a user is selected // Fetch and display user grades if a user is selected