SimpleExcel.php
authorEdward <edward@roojs.com>
Wed, 23 Jan 2013 08:19:54 +0000 (16:19 +0800)
committerEdward <edward@roojs.com>
Wed, 23 Jan 2013 08:19:54 +0000 (16:19 +0800)
SimpleExcel.php

index 79a52f3..862ca85 100644 (file)
@@ -163,8 +163,8 @@ class Pman_Core_SimpleExcel extends Pman
             foreach($cfg['cols']  as $c=>$col_cfg) {
                 $v = isset($cl[$col_cfg['dataIndex']]) ? $cl[$col_cfg['dataIndex']] : '';
                 if (empty($cl[$col_cfg['dataIndex']])) {
-                    if(isset($data['fillBlank'])){
-                        $worksheet->write($start_row+$r, $c, '', $formats[$data['fillBlank']]);
+                    if(isset($cl['fillBlank'])){
+                        $worksheet->write($start_row+$r, $c, '', $formats[$cl['fillBlank']]);
                     }
                     continue;
                 }