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

index d8e56d6..973f5b0 100644 (file)
@@ -283,8 +283,10 @@ class Pman_Core_SimpleExcel extends Pman
     
     function send($fn)
     {
-        if (empty($cfg['leave_open'])) {
-                $this->
+        if (!empty($this->workbook)) {
+            $this->workbook->close();
+            $this->workbook = false
+        }
         
         require_once 'File/Convert.php';
         $fc=  new File_Convert($this->outfile2, "application/vnd.ms-excel");