]> git.wh0rd.org Git - tt-rss.git/commitdiff
use mysqli_set_charset() to set MYSQL_CHARSET
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 9 Aug 2017 05:05:52 +0000 (08:05 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 9 Aug 2017 05:05:52 +0000 (08:05 +0300)
classes/db/mysqli.php

index deb29f264cc04a57e2718adfa0232ea7cf34b7ef..817b48c0ce89bbd915423c2135b9dbd7bc938ad5 100644 (file)
@@ -76,7 +76,7 @@ class Db_Mysqli implements IDb {
                $this->query("SET time_zone = '+0:0'");
 
                if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
-                       $this->query("SET NAMES " . MYSQL_CHARSET);
+                       mysqli_set_charset($this->link, MYSQL_CHARSET);
                }
 
                return true;