SimpleExcel.php
authorAlan Knowles <alan@roojs.com>
Fri, 6 Sep 2013 09:58:47 +0000 (17:58 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Sep 2013 09:58:47 +0000 (17:58 +0800)
SimpleExcel.php

index f73f091..dcec940 100644 (file)
@@ -122,7 +122,7 @@ class Pman_Core_SimpleExcel extends Pman
         // copy the config and alias so that book can be written to..
         $this->worksheet_cfg[$cfg['workbook']] = &$cfg;
         
-        $this->formats = $formats;
+        $this->formats = (array)$formats;
         
         if (isset($cfg['formats']) && empty($formats)) {
             $this->formats = $cfg['formats'];