]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed an uninitialised variable
authormoodler <moodler>
Mon, 25 Aug 2003 17:30:26 +0000 (17:30 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 17:30:26 +0000 (17:30 +0000)
lib/psxlsgen.php

index 5395ecfff88fc6e6ee168b119d44d2f251b20410..c243952ca4de839204047b62f5b0acd2de62ed43 100644 (file)
@@ -155,6 +155,8 @@ if( !defined( "PHP_SIMPLE_XLS_GEN" ) ) {
         header ( "Pragma: no-cache" );\r
         if (!strstr($HTTP_USER_AGENT,"MSIE")) {\r
             $attachment=" attachment;";\r
+        } else {\r
+            $attachment="";\r
         }\r
         header("Content-Type: application/x-msexcel\r\n");\r
         header("Content-Disposition:$attachment filename=$this->filename.xls\r\n\r\n");\r