From: moodler Date: Mon, 25 Aug 2003 17:30:26 +0000 (+0000) Subject: Fixed an uninitialised variable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d9be205e79b7b82b2f30e30c1aa456d2681e6a95;p=moodle.git Fixed an uninitialised variable --- 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");