]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed wrong encoding detection logic in install.php
authorpatrickslee <patrickslee>
Thu, 27 Apr 2006 23:17:25 +0000 (23:17 +0000)
committerpatrickslee <patrickslee>
Thu, 27 Apr 2006 23:17:25 +0000 (23:17 +0000)
install.php

index 72f7990997460c70679e89e1ccf1700a06677874..51d19e03201b64cc92e23baaccb08fc8567a3620 100644 (file)
@@ -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;