From 9213a6875d3e893f39881a0483d58d72e07d3646 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 27 Feb 2013 19:15:24 +0800 Subject: [PATCH] SimpleExcel.php --- SimpleExcel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimpleExcel.php b/SimpleExcel.php index 3158338a..02c29bf0 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -270,7 +270,7 @@ 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); } -- 2.39.2