From 07ba8004fe2d56f18ee72b7dfc84d4a500ff2e02 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 26 Jan 2010 10:03:25 -0500 Subject: [PATCH] Fixed: FS#1012 - Delete all records (domains, ftp users, etc.) of a client when the client gets deleted. --- interface/lib/classes/db_mysql.inc.php | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/interface/lib/classes/db_mysql.inc.php b/interface/lib/classes/db_mysql.inc.php index 9c4871f..a358598 100644 --- a/interface/lib/classes/db_mysql.inc.php +++ b/interface/lib/classes/db_mysql.inc.php @@ -482,16 +482,15 @@ public function tableInfo($table_name) { - global $go_api,$go_info; //* Tabellenfelder einlesen ? - if($rows = $go_api->db->queryAllRecords("SHOW FIELDS FROM $table_name")){ + if($rows = $this->queryAllRecords("SHOW FIELDS FROM $table_name")){ foreach($rows as $row) { - $name = $row[0]; - $default = $row[4]; - $key = $row[3]; - $extra = $row[5]; - $isnull = $row[2]; - $type = $row[1]; + $name = $row['Field']; + $default = $row['Default']; + $key = $row['Key']; + $extra = $row['Extra']; + $isnull = $row['Null']; + $type = $row['Type']; $column = array('name' => $name, 'defaultValue' => $default); //$column["type"] = $type; -- Gitblit v1.9.1