瀏覽代碼

Catch warning

master
Adrian Short 9 年之前
父節點
當前提交
5a7efd534a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      includes/sites.php

+ 1
- 1
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');


Loading…
取消
儲存