From 02f0217c20095d71236979aed1f34f862715cab6 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 10 Aug 2006 02:41:19 +0000 Subject: [PATCH] fix a bug when user's lang is not set, fall back to site lang --- lib/db/migrate2utf8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/migrate2utf8.php b/lib/db/migrate2utf8.php index f910981e80a..7f337a30317 100755 --- a/lib/db/migrate2utf8.php +++ b/lib/db/migrate2utf8.php @@ -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')) {