Skip to content

Commit

Permalink
improved AbstractRequest::getDb
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 24, 2017
1 parent 4fb00e7 commit eaf137c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,6 @@ protected function prepareUserAgent()

public function getDb()
{
return $this->builder->db;
return isset($this->builder) ? $this->builder->db : AbstractConnection::getDb($this->dbname);
}
}

0 comments on commit eaf137c

Please sign in to comment.