# From conf
if (!is_array($connect)
and $connect === true
- and isset($this->db->conf[$this->params['db']])
) {
+ if (empty($this->db->conf[$this->params['db']]))
+ $this->not_found('Unknown database: '.$this->params['db']);
$connect = $this->db->conf[$this->params['db']];
- if (empty($connect['name'])) $this->not_found('Unknown database: '.$this->params['db']);
}
- $connect['id']= $this->params['db'];
+ $connect['id'] = $this->params['db'];
$this->db->__construct($connect);
#$this->id = $this->params['db'];