fix a bug when user's lang is not set, fall back to site lang

This commit is contained in:
toyomoyo
2006-08-10 02:41:19 +00:00
parent 105a8f399f
commit 02f0217c20
+1 -1
View File
@@ -77,7 +77,7 @@ function migrate2utf8_user($fields, $crash, $debug, $maxrecords, $done, $tablest
if ($globallang) {
$fromenc = $globallang;
} else {
$fromenc = get_original_encoding('','',$record->lang);
$fromenc = get_original_encoding($CFG->lang,'',$record->lang);
}
if (($fromenc != 'utf-8') && ($fromenc != 'UTF-8')) {