From 583dfd073dfdd50522b99da964d490bb30b98ad5 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 13 Feb 2006 02:38:40 +0000 Subject: [PATCH] individual record error only gets reported when debug is on --- admin/utfdbmigrate.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/utfdbmigrate.php b/admin/utfdbmigrate.php index 89b797e94ad..c299c5764a6 100755 --- a/admin/utfdbmigrate.php +++ b/admin/utfdbmigrate.php @@ -652,9 +652,10 @@ 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 $dbtablename, $fieldname, $recordid; - echo "Problem converting: $dbtablename -> $fieldname -> $recordid!"; - + global $CFG; + if ($CFG->debug>7) { + echo "
Problem converting: $dbtablename -> $fieldname -> $recordid!"; + } } //only this function should be used during db migraton, because of addslashes at the end of the convertion