Fixed an uninitialised variable

This commit is contained in:
moodler
2003-08-25 17:30:26 +00:00
parent 0ff42b0fc9
commit d9be205e79
+2
View File
@@ -155,6 +155,8 @@ if( !defined( "PHP_SIMPLE_XLS_GEN" ) ) {
header ( "Pragma: no-cache" );
if (!strstr($HTTP_USER_AGENT,"MSIE")) {
$attachment=" attachment;";
} else {
$attachment="";
}
header("Content-Type: application/x-msexcel\r\n");
header("Content-Disposition:$attachment filename=$this->filename.xls\r\n\r\n");