From: patrickslee Date: Thu, 27 Apr 2006 23:17:25 +0000 (+0000) Subject: Fixed wrong encoding detection logic in install.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=83e8edb463575dccbea8749675aef1964f1d7d0c;p=moodle.git Fixed wrong encoding detection logic in install.php --- diff --git a/install.php b/install.php index 72f7990997..51d19e0320 100644 --- a/install.php +++ b/install.php @@ -329,7 +329,7 @@ if ($INSTALL['stage'] == DATABASE) { $rs = $db->Execute("SHOW server_encoding"); if ($rs && $rs->RecordCount() > 0) { $encoding = $rs->fields['server_encoding']; - if (strtoupper($encoding) != 'UNICODE' || strtoupper($encoding) != 'UTF8') { + if (strtoupper($encoding) != 'UNICODE' && strtoupper($encoding) != 'UTF8') { $errormsg = get_string('dbwrongencoding', 'install', $encoding); $nextstage = DATABASE; $INSTALL['showskipdbencodingtest'] = true;