projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5871e04
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Tue, 18 Oct 2016 04:55:44 +0000
(12:55 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 18 Oct 2016 04:55:44 +0000
(12:55 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
0bfbca2
..
6580e50
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-258,7
+258,7
@@
class Pman_Core_SimpleExcel extends Pman
if (!empty($col_cfg['renderer'])) {
if (is_a($col_cfg['renderer'], 'Closure')) {
- $col_cfg['renderer'](
new StdClass,
$cl[$col_cfg['dataIndex']], $worksheet, $r+1, $c, $cl);
+ $col_cfg['renderer']($cl[$col_cfg['dataIndex']], $worksheet, $r+1, $c, $cl);
} else {
// not sure if row is correct here...!!!?
call_user_func($col_cfg['renderer'], $cl[$col_cfg['dataIndex']], $worksheet, $r+1, $c, $cl);