fix using InvalidArgumentException
This commit is contained in:
parent
5c042ae0ab
commit
0df49ff670
@ -50,7 +50,7 @@ class Database
|
||||
|
||||
if ($this->connection->connect_error)
|
||||
throw new \InvalidArgumentException("Could not connect to MySQL database. Check your configuration:".
|
||||
$this->connection->connect_error, $this->connection->connect_errno, true);
|
||||
$this->connection->connect_error, $this->connection->connect_errno);
|
||||
|
||||
$this->connection->query("SET names 'utf8'");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user