DataObjects/core.sql
[Pman.Core] / SimpleExcel.php
index 1116a95..02c29bf 100644 (file)
@@ -269,7 +269,8 @@ class Pman_Core_SimpleExcel extends Pman
             
             $v = @iconv('UTF-8', 'UTF-8//IGNORE', $v);
             
-            $format = isset($formats[$col_cfg['format']] ) &&  ? $formats[$col_cfg['format']] : false;
+            
+            $format = isset($col_cfg['format'])  && isset($formats[$col_cfg['format']] )   ? $formats[$col_cfg['format']] : false;
           //  print_R(array($start_row+$r, $c, $v, $format));exit;
             $worksheet->write($start_row+$r, $c, $v, $format);
         }
@@ -277,9 +278,7 @@ class Pman_Core_SimpleExcel extends Pman
         
         return $hasRender;
     }
-    
-    
-    
+     
     
     function send($fn)
     {