projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9122216
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Wed, 29 Jan 2014 04:23:39 +0000
(12:23 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 29 Jan 2014 04:23:39 +0000
(12:23 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
5fd767a
..
ae23cd0
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-129,7
+129,14
@@
class Pman_Core_SimpleExcel extends Pman
//$this->formats = (array)$formats;
-
+ foreach($formats as $k=>$v) {
+ if (!isset($this->formats[$f])) {
+ $this->formats[$f] = & $workbook->addFormat();
+ }
+ if (is_object($v)) {
+ continue; // skip!?!?
+ }
+ }
if (isset($cfg['formats'])) {