Skip to content

Commit

Permalink
Added patch provided in Issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
techsneeze committed Apr 13, 2016
1 parent 2a1dc61 commit 64ddc06
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dmarcts-report-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,16 @@ function tmpl_page ($body) {
}
}

if(isset($_GET['report']) && is_numeric($_GET['report'])){
$reportid=$_GET['report'];
}elseif(!isset($_GET['report'])){
$reportid=false;
}else{
die('Invalid Report ID');
}
// Generate Page with report list and report data (if a report is selected).
echo tmpl_page( ""
.tmpl_reportList($allowed_reports)
.tmpl_reportData( (isset($_GET["report"]) ? $_GET["report"] : false ), $allowed_reports )
.tmpl_reportData($reportid, $allowed_reports )
);

?>

0 comments on commit 64ddc06

Please sign in to comment.