Pman/Roo.php
authorAlan Knowles <alan@roojs.com>
Thu, 16 Mar 2017 09:29:51 +0000 (17:29 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Mar 2017 09:29:51 +0000 (17:29 +0800)
Pman/Roo.php

index 646ced3..6302f46 100644 (file)
@@ -454,11 +454,11 @@ class Pman_Roo extends Pman
                 if ($cols == '*') {  /// did we get cols sent to us?
                     $cols = array_keys($x);
                 }
-                if ($titles== '*') {
-                    $titles= array_keys($x);
-                }
+               
                 if ($titles !== false) {
-                    
+                    if ($titles== '*') {
+                        $titles= array_keys($x);
+                    }
                     foreach($cols as $i=>$col) {
                         $se_config['cols'][] = array(
                             'header'=> isset($titles[$i]) ? $titles[$i] : $col,