bug 815822

This commit is contained in:
Marc Delisle
2003-10-01 20:18:36 +00:00
parent 007c2c2341
commit dc61c4e9e4
2 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2003-10-01 Marc Delisle <lem9@users.sourceforge.net>
* lang/slovenian update, thanks to Kositer Uros
* lang/norwegian: Updated, thanks to Sven-Erik Andersen (sven-erik).
* libraries/export/sql.php3: bug 815822 Undefined index/offset
2003-10-01 Alexander M. Turek <rabus@users.sourceforge.net>
* translators.html: Better link.

View File

@@ -443,8 +443,11 @@ function PMA_getTableContentFast($db, $table, $crlf, $error_url, $sql_query)
// Checks whether the field is an integer or not
for ($j = 0; $j < $fields_cnt; $j++) {
//$field_set[$j] = PMA_backquote(PMA_mysql_field_name($result, $j), $use_backquotes);
$field_set[$j] = PMA_backquote($analyzed_sql[0]['select_expr'][$j]['column'], $use_backquotes);
if (isset($analyzed_sql[0]['select_expr'][$j]['column'])) {
$field_set[$j] = PMA_backquote($analyzed_sql[0]['select_expr'][$j]['column'], $use_backquotes);
} else {
$field_set[$j] = PMA_backquote(PMA_mysql_field_name($result, $j), $use_backquotes);
}
$type = $field_types[$field_set[$j]];