Browse Source

Catch warning

master
Adrian Short 9 years ago
parent
commit
5a7efd534a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      includes/sites.php

+ 1
- 1
includes/sites.php View File

@@ -51,7 +51,7 @@ else :
echo "No posts matched the query"; echo "No posts matched the query";
endif; endif;


if ( $_GET['format'] == 'csv' ) {
if ( isset( $_GET['format'] ) && $_GET['format'] == 'csv' ) {
header( "Content-Type: text/csv" ); header( "Content-Type: text/csv" );
header('Content-Disposition: attachment; filename="localweblist.csv"'); header('Content-Disposition: attachment; filename="localweblist.csv"');
$fp = fopen('php://output', 'w'); $fp = fopen('php://output', 'w');


Loading…
Cancel
Save