some small fixes concerning the XML feature

This commit is contained in:
Alexander M. Turek
2002-04-28 18:10:09 +00:00
parent c1bfb57960
commit d0040a347f
2 changed files with 6 additions and 5 deletions

View File

@@ -585,12 +585,12 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
$buffer .= ' <' . $table . '>' . $crlf;
for ($i = 0; $i < $columns_cnt; $i++) {
// There is no way to dectect a "NULL" value with PHP3
if (!function_exists('is_null') || !is_null($record[$column[$i]])) {
$buffer .= ' <' . $column . '>' . htmlspecialchars($record[$column])
. '</' . $column . '>' . $crlf;
if (!function_exists('is_null') || !is_null($record[$columns[$i]])) {
$buffer .= ' <' . $columns[$i] . '>' . htmlspecialchars($record[$columns[$i]])
. '</' . $columns[$i] . '>' . $crlf;
}
}
$buffer .= ' </' . $table . '>';
$buffer .= ' </' . $table . '>' . $crlf;
}
mysql_free_result($result);

View File

@@ -300,11 +300,12 @@ else {
$tmp_select = implode($table_select, '|');
$tmp_select = '|' . $tmp_select . '|';
}
$i = 0;
while ($i < $num_tables) {
if (!isset($single)) {
$table = mysql_tablename($tables, $i);
}
if (isset($tmp_select) && strpos($tmp_select, ' |' . $table . '|')) {
if (isset($tmp_select) && strpos($tmp_select, ' |' . $table . '|')>=0) {
$dump_buffer .= PMA_getTableXML($db, $table, $crlf, $err_url) . $crlf;
}
$i++;