diff --git a/ChangeLog b/ChangeLog index 3ee3f5510..b742736f0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ $Source$ * lang/portuguese update, thanks to Lopo Pizarro * lang/catalan update, thanks to Xavier Navarro * lang/ukrainian update, thanks to Markijan Baran + * ldi_check.php3: undefined $sub_part 2002-08-01 Robin Johnson * scripts/decode_bug.php3: diff --git a/ldi_check.php3 b/ldi_check.php3 index 30dc24e7c..a06e787b3 100755 --- a/ldi_check.php3 +++ b/ldi_check.php3 @@ -29,6 +29,8 @@ if (isset($btnLDI) && ($textfile != 'none')) { $replace = ''; } +error_reporting(E_ALL); +chmod($textfile, 0644); // Kanji encoding convert appended by Y.Kawada if (function_exists('PMA_kanji_file_conv')) { $textfile = PMA_kanji_file_conv($textfile, $knjenc, isset($xkana) ? $xkana : ''); @@ -91,6 +93,13 @@ if (isset($btnLDI) && ($textfile != 'none')) { } else { $sql_query = $query; } + // Set an empty sub_part to avoid an undefined variable. + // We could also rename the ldi* scripts + // to tbl_properties_ldi* to improve consistency with the other sub-pages. + // + // The $goto in ldi_table.php3 is set to tbl_properties.php3 but maybe + // if would be better to Browse the latest inserted data. + $sub_part=''; include('./sql.php3'); }