projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db3f10a
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Thu, 6 Dec 2012 07:27:49 +0000
(15:27 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 6 Dec 2012 07:27:49 +0000
(15:27 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
71616eb
..
8c445c4
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-206,7
+206,8
@@
class Pman_Core_SimpleExcel extends Pman
foreach($row as $c => $col) {
// if it's an array? - formated ???
if (is_array($col)) {
- $worksheet->write($start_row, $c, $col[0], $col[1]);
+ $format = isset($formats[$col[1]] ) ? $formats[$col[1]] : false;
+ $worksheet->write($start_row, $c, $col[0], $format);
continue;
}
$worksheet->write($start_row, $c, $col);