forked from science-ation/science-ation
Make sure we have an ID and a Year before trying to make the report
This commit is contained in:
parent
213004783b
commit
b8e4c38c2b
@ -35,6 +35,10 @@
|
|||||||
|
|
||||||
if($format == '') $format = NULL;
|
if($format == '') $format = NULL;
|
||||||
|
|
||||||
report_gen_by_id($id, $year, $format);
|
if($id && $year)
|
||||||
|
report_gen_by_id($id, $year, $format);
|
||||||
|
else {
|
||||||
|
header("Location: reports.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user