raw_db should always return something
This commit is contained in:
parent
3040c1d5b5
commit
ede2dc7cfe
1 changed files with 3 additions and 0 deletions
|
@ -336,6 +336,9 @@ class Database
|
||||||
|
|
||||||
public function raw_db(): PDO
|
public function raw_db(): PDO
|
||||||
{
|
{
|
||||||
|
if (is_null($this->db)) {
|
||||||
|
$this->connect_db();
|
||||||
|
}
|
||||||
return $this->db;
|
return $this->db;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue