public function ls(&$fields=[]) {
- $fields = ['id','name','title','type','host','order'];
+ $fields = ['id','name','title','type','host' ]; #,'order'];
$dbs = [];
$name = self::p('name','');
$type = self::p('type','');
- $has_order = false;
foreach ($this->conf as $id => $attr) {
# NB 21.09.16 $attr['_no_connect'] = true;
$attr['id'] = $id;
- if (isset($attr['id'])) $has_order = true;
$d = new Db($attr);
$db = [];
$dbs[] = $db;
}
- if ($has_order) foreach ($dbs as $i=>$db) if (!isset($db['order'])) $dbs[$i]['order'] = '';
return $dbs;
}