Fixed undefined index warnings in XML dump.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user