diff --git a/maint.php b/maint.php index af10520..3c1f5a0 100644 --- a/maint.php +++ b/maint.php @@ -924,9 +924,10 @@ function changemaintType () { function schedules(): void { global $actions, $maint_types, $maint_intervals, $yesno; - $schedules = db_fetch_assoc('SELECT * + $schedules = db_fetch_assoc_prepared('SELECT * FROM plugin_maint_schedules - ORDER BY name'); + ORDER BY name', + []); form_start('maint.php', 'chk'); @@ -1134,10 +1135,11 @@ function clearFilter() { "; diff --git a/tests/test_prepared_statements.php b/tests/test_prepared_statements.php new file mode 100644 index 0000000..148e113 --- /dev/null +++ b/tests/test_prepared_statements.php @@ -0,0 +1,76 @@ + 0 ? 1 : 0);