diff --git a/ChangeLog b/ChangeLog index c5c02bbec..f60dbb685 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ $Source$ 2002-12-11 Alexander M. Turek * lang/german-*.inc.php3: Updates. * lang/catalan-*.inc.php3: Updates, thanks again to Xavier Navarro (xavin). + * libraries/build_dump.php3: + - Fixed part 2 of bug #652311 (Undefined variables); + - Coding standards. 2002-12-11 Michal Cihar * tbl_dump.php3: Fix exporting of structure and data to file, fix and make diff --git a/libraries/build_dump.lib.php3 b/libraries/build_dump.lib.php3 index ded195d66..db778f8e6 100644 --- a/libraries/build_dump.lib.php3 +++ b/libraries/build_dump.lib.php3 @@ -677,14 +677,14 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ mysql_free_result($result); $tex_escape = array("$", "%", "{", "}", "&", "#", "_", "^"); - + $local_query = 'select * from ' . PMA_backquote($db) . '.' . PMA_backquote($table); $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url); - $buffer .= '\begin{table} ' . $crlf - . ' \begin{longtable}{|'; - - for($index=0;$index<$columns_cnt;$index++) { + $buffer = '\begin{table} ' . $crlf + . ' \begin{longtable}{|'; + + for($index=0;$index<$columns_cnt;$index++) { $buffer .= 'c|'; } $buffer .= '} ' . $crlf ; @@ -693,13 +693,13 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ // print the whole table while ($record = PMA_mysql_fetch_array($result, MYSQL_ASSOC)) { - + // print each row for($i = 0; $i < $columns_cnt; $i++) { if (!function_exists('is_null') || !is_null($record[$columns[$i]])) { $column_value = $record[$columns[$i]]; - // $ % { } & # _ ^ + // $ % { } & # _ ^ // escaping special characters for($k=0;$k