From 87d2bdf17037b8ab88dc3f345f63a778ce10e9b5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 5 Nov 2005 18:14:20 +0000 Subject: [PATCH] swichting the diagnostics off (unless extra debug is checked or run standalone) --- setup/fix_mysql_charset.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";