individual record error only gets reported when debug is on

This commit is contained in:
toyomoyo
2006-02-13 02:38:40 +00:00
parent 89ac329bd0
commit 583dfd073d
+4 -3
View File
@@ -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 "<br />Problem converting: $dbtablename -> $fieldname -> $recordid!";
}
}
//only this function should be used during db migraton, because of addslashes at the end of the convertion