SimpleExcel.php
authorAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2013 03:10:28 +0000 (11:10 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2013 03:10:28 +0000 (11:10 +0800)
SimpleExcel.php

index 65e42c4..fb8c8a5 100644 (file)
@@ -80,6 +80,12 @@ class Pman_Core_SimpleExcel extends Pman
             
         }
         
+        if (empty($cfg['leave_open'])) {
+            
+            $this->outfile2 = $outfile2;
+            return;
+        }
+        
         $workbook->close();
         $this->outfile2 = $outfile2;