SimpleExcel.php
authorAlan Knowles <alan@roojs.com>
Tue, 4 Feb 2014 10:14:42 +0000 (18:14 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 4 Feb 2014 10:14:42 +0000 (18:14 +0800)
SimpleExcel.php

index d7a925b..2805699 100644 (file)
@@ -290,7 +290,7 @@ class Pman_Core_SimpleExcel extends Pman
         
         foreach($cfg['cols']  as $c=>$col_cfg) {
             
-            if(isset($cl[$col_cfg['dataIndex']])){
+            if(isset($col_cfg['dataIndex']) && isset($cl[$col_cfg['dataIndex']])){
                 $v = $cl[$col_cfg['dataIndex']];
             }else{
                 if(isset($col_cfg['fillBlank'])){