Skip to content

Commit

Permalink
Prevented output of headers when running reports in CLI mode. Thanks …
Browse files Browse the repository at this point in the history
…to William Haller.

git-svn-id: http://svn.code.sf.net/p/mrbs/code/mrbs/trunk@2783 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
  • Loading branch information
cimorrison committed Nov 20, 2013
1 parent e28b6d5 commit 30f04ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -1432,8 +1432,11 @@ function do_summary(&$count, &$hours, &$room_hash, &$name_hash)
$content_type = "application/ics; charset=" . get_charset() . "; name=\"$filename\"";
break;
}
header("Content-Type: $content_type");
header("Content-Disposition: attachment; filename=\"$filename\"");
if (!$cli_mode)
{
header("Content-Type: $content_type");
header("Content-Disposition: attachment; filename=\"$filename\"");
}

if (($output_format == OUTPUT_CSV) && $csv_bom)
{
Expand Down

0 comments on commit 30f04ad

Please sign in to comment.