From 30859798d1c7154dc7568de41270e4c2b86420b9 Mon Sep 17 00:00:00 2001
From: Ralf Becker
Date: Tue, 15 Nov 2005 19:10:11 +0000
Subject: [PATCH] fixed wrong $this->db instead of $db in error-message
---
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 26593b9995..839ca58ea3 100644
--- a/setup/fix_mysql_charset.php
+++ b/setup/fix_mysql_charset.php
@@ -148,7 +148,7 @@ if (substr($db->Type,0,5) == 'mysql' && $db_version >= 4.1 && $GLOBALS['egw_setu
if (!$db->query($alter_table,__LINE__,__FILE__))
{
echo "SQL Error: ".nl2br($alter_table)."
\n";
- echo "{$this->db->Type} Error: {$this->db->Errno} ({$this->db->Error})
\n";
+ echo "{$db->Type} Error: {$db->Errno} ({$db->Error})\n";
echo "continuing ...
\n";
continue;
}
@@ -164,7 +164,7 @@ if (substr($db->Type,0,5) == 'mysql' && $db_version >= 4.1 && $GLOBALS['egw_setu
if (!$db->query($alter_table_back,__LINE__,__FILE__))
{
echo "SQL Error: ".nl2br($alter_table_back)."
\n";
- echo "{$this->db->Type} Error: {$this->db->Errno} ({$this->db->Error})\n";
+ echo "{$db->Type} Error: {$db->Errno} ({$db->Error})\n";
echo "continuing ...
\n";
continue;
}