From 5768a2388aa666f7ee7b34c42f5c18d967a1e412 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 30 Oct 2012 10:03:51 -0400
Subject: [PATCH] Fixed: FS#2501 - Check some remote api functions

---
 interface/lib/classes/db_mysql.inc.php |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/interface/lib/classes/db_mysql.inc.php b/interface/lib/classes/db_mysql.inc.php
index d9b6600..1a6cc22 100644
--- a/interface/lib/classes/db_mysql.inc.php
+++ b/interface/lib/classes/db_mysql.inc.php
@@ -466,12 +466,21 @@
 
       if($rows = $app->db->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();

--
Gitblit v1.9.1