forked from Cavemanon/cavepaintings
raw_db should always return something
This commit is contained in:
parent
3040c1d5b5
commit
ede2dc7cfe
@ -336,6 +336,9 @@ class Database
|
||||
|
||||
public function raw_db(): PDO
|
||||
{
|
||||
if (is_null($this->db)) {
|
||||
$this->connect_db();
|
||||
}
|
||||
return $this->db;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user