From " to '

This commit is contained in:
Tobias Reich 2014-11-05 15:57:31 +01:00
parent 348af5ca3d
commit ba42169397

View File

@ -21,7 +21,7 @@ class Database extends Module {
# Avoid sql injection on older MySQL versions by using GBK
if ($database->server_version<50500) $database->set_charset('GBK');
else $database->set_charset("utf8");
else $database->set_charset('utf8');
# Set unicode
$database->query('SET NAMES utf8;');