From 008060c43eeb208bd14889b62b2349418f8fc1a6 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 28 Apr 2006 01:55:12 +0000 Subject: [PATCH] fix for 5305 --- admin/utfdbmigrate.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/utfdbmigrate.php b/admin/utfdbmigrate.php index 7aaebbdb85..03257f4f2b 100755 --- a/admin/utfdbmigrate.php +++ b/admin/utfdbmigrate.php @@ -171,7 +171,8 @@ function db_migrate2utf8(){ //Eloy: Perhaps some type of limit parameter here //Then, all those errors, should be converted to //mtrace() and return 0. (showing the current //table/field/recordid) - global $db, $CFG; + + global $db, $CFG, $dbtablename, $fieldname, $record; $debug = ($CFG->debug > 7); @set_time_limit(0); @@ -837,9 +838,9 @@ function get_user_lang($userid) { // a placeholder for now function log_the_problem_somewhere() { //Eloy: Nice function, perhaps we could use it, perhpas no. :-) - global $CFG, $dbtablename, $fieldname, $recordid; + global $CFG, $dbtablename, $fieldname, $record; if ($CFG->debug>7) { - echo "
Problem converting: $dbtablename -> $fieldname -> $recordid!"; + echo "
Problem converting: $dbtablename -> $fieldname -> {$record->id}!"; } } -- 2.39.5