From d9be205e79b7b82b2f30e30c1aa456d2681e6a95 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Aug 2003 17:30:26 +0000 Subject: [PATCH] Fixed an uninitialised variable --- lib/psxlsgen.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/psxlsgen.php b/lib/psxlsgen.php index 5395ecfff8..c243952ca4 100644 --- a/lib/psxlsgen.php +++ b/lib/psxlsgen.php @@ -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"); -- 2.39.5