diff --git a/admin/reports.php b/admin/reports.php index 78383967..8998135f 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -64,7 +64,7 @@ $type = $_POST['type']; $stock = $_POST['stock']; - /* + if(!array_key_exists($type, $report_options['type']['values'])) { echo "Invalid format: type=$type"; exit; @@ -73,7 +73,6 @@ echo "Invalid stock: stock=$stock"; exit; } - */ mysql_query("INSERT INTO `reports_committee` (`id`, `users_id` , `reports_id` , `category` , `comment` , `format` , `stock`)