diff --git a/setup/fix_mysql_charset.php b/setup/fix_mysql_charset.php index 0a90295566..6a0a1490f5 100644 --- a/setup/fix_mysql_charset.php +++ b/setup/fix_mysql_charset.php @@ -140,7 +140,7 @@ if (substr($db->Type,0,5) == 'mysql' && $GLOBALS['egw_setup']->system_charset && { $alter_table = "ALTER TABLE $table\n".implode(",\n",$alter_table); - /*if ($running_standalone)*/ echo '
'.nl2br($alter_table)."
\n"; + if ($running_standalone || $_REQUEST['debug']) echo ''.nl2br($alter_table)."
\n"; if (!$db->query($alter_table,__LINE__,__FILE__)) { echo "SQL Error: ".nl2br($alter_table)."
\n"; @@ -156,7 +156,7 @@ if (substr($db->Type,0,5) == 'mysql' && $GLOBALS['egw_setup']->system_charset && { $alter_table_back = "ALTER TABLE $table\n".implode(",\n",$alter_table_back); - /*if ($running_standalone)*/ echo ''.nl2br($alter_table_back)."
\n"; + if ($running_standalone || $_REQUEST['debug']) echo ''.nl2br($alter_table_back)."
\n"; if (!$db->query($alter_table_back,__LINE__,__FILE__)) { echo "SQL Error: ".nl2br($alter_table_back)."
\n";