Make sure we have an ID and a Year before trying to make the report

This commit is contained in:
james 2007-10-25 20:30:58 +00:00
parent 213004783b
commit b8e4c38c2b

View File

@ -35,6 +35,10 @@
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;
}
?>