Fixed undefined index warnings in XML dump.

This commit is contained in:
Michal Čihař
2003-04-09 16:34:58 +00:00
parent 205a130e58
commit 03a6ff4124
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ $Source$
2003-04-09 Michal Cihar <nijel@users.sourceforge.net>
* libraries/build_dump.lib.php3: Fixed undefined index warnings in LaTeX
dump.
and XML dump.
* libraries/display_export.lib.php3: Added <br /> before charset
selection in export.

View File

@@ -689,7 +689,7 @@ 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[$columns[$i]])) {
if ( isset($record[$columns[$i]]) && (!function_exists('is_null') || !is_null($record[$columns[$i]]))) {
$buffer .= ' <' . $columns[$i] . '>' . htmlspecialchars($record[$columns[$i]])
. '</' . $columns[$i] . '>' . $crlf;
}