diff --git a/includes/sites.php b/includes/sites.php index 55c76e4..d45724e 100644 --- a/includes/sites.php +++ b/includes/sites.php @@ -51,7 +51,7 @@ else : echo "No posts matched the query"; endif; -if ( $_GET['format'] == 'csv' ) { +if ( isset( $_GET['format'] ) && $_GET['format'] == 'csv' ) { header( "Content-Type: text/csv" ); header('Content-Disposition: attachment; filename="localweblist.csv"'); $fp = fopen('php://output', 'w');