Fix: Fix for mysql 5.5

This commit is contained in:
Laurent Destailleur
2011-01-16 00:46:11 +00:00
parent 9849e4f361
commit e9bbef77bf

View File

@@ -266,7 +266,7 @@ if (! $error && $db->connected)
// We keep only utf8
//if (($_POST["db_type"] == 'mysql' ||$_POST["db_type"] == 'mysqli') && ! preg_match('/(utf8|latin1)/i',$characterSet['charset'])) $linedisabled=true;
if (($_POST["db_type"] == 'mysql' ||$_POST["db_type"] == 'mysqli') && ! preg_match('/utf8/i',$characterSet['charset'])) $linedisabled=true;
if (($_POST["db_type"] == 'mysql' ||$_POST["db_type"] == 'mysqli') && ! preg_match('/utf8$/i',$characterSet['charset'])) $linedisabled=true;
if ($defaultCharacterSet == $characterSet['charset'] )
{