fix bug of converting object to string

This commit is contained in:
printempw 2016-08-09 21:41:45 +08:00
parent 3d3b2541dc
commit 066d468fa4

View File

@ -44,7 +44,7 @@ class Database
throw new E("Could not connect to MySQL database. Check your config.php:".
$this->connection->connect_error, $this->connection->connect_errno, true);
$$this->connection->query("SET names 'utf8'");
$this->connection->query("SET names 'utf8'");
$this->table_name = $config['prefix'].$table_name;
}