projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b67cd
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Wed, 29 Jan 2014 04:21:58 +0000
(12:21 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 29 Jan 2014 04:21:58 +0000
(12:21 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
78aa4ad
..
d928ab9
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-132,15
+132,16
@@
class Pman_Core_SimpleExcel extends Pman
if (isset($cfg['formats']) && empty($formats)) {
foreach($cfg['formats'] as $f=>$fcfg) {
-
- $formats[$f] = & $workbook->addFormat();
+ if (!isset($this->formats[$f])) {
+ $this->formats[$f] = & $workbook->addFormat();
+ }
foreach((array)$fcfg as $k=>$v) {
- $formats[$f]->{'set' . $k}($v);
+ $
this->
formats[$f]->{'set' . $k}($v);
}
}
- $this->formats = $formats;
+
}