From 9d442394d1637aa1796fe79c4ddd801a30c3ab70 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 May 2014 15:46:46 +0800 Subject: [PATCH] DatabaseColumns.php --- DatabaseColumns.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DatabaseColumns.php b/DatabaseColumns.php index 61adbc85..e9e4c7fc 100644 --- a/DatabaseColumns.php +++ b/DatabaseColumns.php @@ -27,7 +27,11 @@ class Pman_Core_DatabaseColumns extends Pman { $re = $d->autoJoin(); //echo '
';print_r($re);
         $ret = array ();
+        
         foreach($re['join_names'] as $c=>$f) {
+            $re['cols'][$c] = $f;
+        }
+        foreach($re['cols'] as $c=>$f) {
             $ret[]  = array(
                 'name' => $c,
                 'val' => $f
-- 
2.39.2