From 5a7efd534a524df730f30134cdf7b4ca6690d820 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 27 Apr 2015 21:52:23 +0100 Subject: [PATCH] Catch warning --- includes/sites.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');