From: Alan Knowles Date: Wed, 27 Feb 2013 11:15:24 +0000 (+0800) Subject: SimpleExcel.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=9213a6875d3e893f39881a0483d58d72e07d3646 SimpleExcel.php --- 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); }