DatabaseColumns.php
authorAlan Knowles <alan@roojs.com>
Thu, 22 May 2014 07:40:45 +0000 (15:40 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 May 2014 07:40:45 +0000 (15:40 +0800)
DatabaseColumns.php

index 9a2a161..e701908 100644 (file)
@@ -25,11 +25,11 @@ class Pman_Core_DatabaseColumns extends Pman {
     function get($table) {
         $d = DB_DAtaObject::Factory($table);
         $re = $d->autoJoin();
-        
+        $ret = raray();
         foreach($re['cols'] as $c=>$f {
             $ret[]  = array(
                 'name' => $c,
-                'val' =>$v
+                'val' =>$f
             );
             
         }