projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2129564
)
Pman/Roo.php
author
Edward
<edward@roojs.com>
Mon, 7 Jan 2019 06:05:09 +0000
(14:05 +0800)
committer
Edward
<edward@roojs.com>
Mon, 7 Jan 2019 06:05:09 +0000
(14:05 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
a83bc9e
..
bc56d60
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-454,11
+454,18
@@
class Pman_Roo extends Pman
if ($cols == '*') { /// did we get cols sent to us?
$cols = array_keys($x);
}
+
+ if(!is_array($cols)) {
+ $cols = explode(',', $cols);
+ }
if ($titles !== false) {
if ($titles== '*') {
$titles= array_keys($x);
}
+ if(!is_array($titles)) {
+ $titles = explode(',', $titles);
+ }
foreach($cols as $i=>$col) {
$se_config['cols'][] = array(
'header'=> isset($titles[$i]) ? $titles[$i] : $col,