fix using InvalidArgumentException

This commit is contained in:
printempw 2016-10-29 21:31:58 +08:00
parent 5c042ae0ab
commit 0df49ff670

View File

@ -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'");
}