Fixed db connection for normal databases
This commit is contained in:
parent
0c2997789d
commit
a9995ecd6c
@ -82,7 +82,7 @@ class Query_Builder {
|
||||
switch($dbtype)
|
||||
{
|
||||
default:
|
||||
$this->db = new $dbtype("host={$params->host};port={$params->port};", $params->user, $params->pass);
|
||||
$this->db = new $dbtype("host={$params->host};port={$params->port};dbname={$this->database}", $params->user, $params->pass);
|
||||
break;
|
||||
|
||||
case "sqlite":
|
||||
|
Loading…
Reference in New Issue
Block a user