forked from extern/egroupware
swichting the diagnostics off (unless extra debug is checked or run standalone)
This commit is contained in:
parent
393250d8e6
commit
87d2bdf170
@ -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);
|
$alter_table = "ALTER TABLE $table\n".implode(",\n",$alter_table);
|
||||||
|
|
||||||
/*if ($running_standalone)*/ echo '<p>'.nl2br($alter_table)."</p>\n";
|
if ($running_standalone || $_REQUEST['debug']) echo '<p>'.nl2br($alter_table)."</p>\n";
|
||||||
if (!$db->query($alter_table,__LINE__,__FILE__))
|
if (!$db->query($alter_table,__LINE__,__FILE__))
|
||||||
{
|
{
|
||||||
echo "<p>SQL Error: ".nl2br($alter_table)."</p>\n";
|
echo "<p>SQL Error: ".nl2br($alter_table)."</p>\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);
|
$alter_table_back = "ALTER TABLE $table\n".implode(",\n",$alter_table_back);
|
||||||
|
|
||||||
/*if ($running_standalone)*/ echo '<p>'.nl2br($alter_table_back)."</p>\n";
|
if ($running_standalone || $_REQUEST['debug']) echo '<p>'.nl2br($alter_table_back)."</p>\n";
|
||||||
if (!$db->query($alter_table_back,__LINE__,__FILE__))
|
if (!$db->query($alter_table_back,__LINE__,__FILE__))
|
||||||
{
|
{
|
||||||
echo "<p><b>SQL Error</b>: ".nl2br($alter_table_back)."</p>\n";
|
echo "<p><b>SQL Error</b>: ".nl2br($alter_table_back)."</p>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user