put the type and stock checks back in, to make sure we get the right stuff.

This commit is contained in:
james 2007-12-20 18:38:17 +00:00
parent 312808bc8f
commit 348647208f

View File

@ -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`)