From 066d468fa4f5fd6f7ccbae5f9c506df8ce379537 Mon Sep 17 00:00:00 2001 From: printempw Date: Tue, 9 Aug 2016 21:41:45 +0800 Subject: [PATCH] fix bug of converting object to string --- app/Services/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Database.php b/app/Services/Database.php index 78dab7cf..519a398e 100644 --- a/app/Services/Database.php +++ b/app/Services/Database.php @@ -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; }