From 6a8750e39ada70a56932eabd44eb1372d80e8589 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 7 Jan 2019 14:05:09 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Pman/Roo.php b/Pman/Roo.php index a83bc9e..bc56d60 100644 --- 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, -- 2.39.2