forked from science-ation/science-ation
put the type and stock checks back in, to make sure we get the right stuff.
This commit is contained in:
parent
312808bc8f
commit
348647208f
@ -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`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user