From 63d3f86c0fe08182d194e868e98056db959a59a7 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 3 Aug 2002 00:33:20 +0000 Subject: [PATCH] undefined sub-part --- ChangeLog | 1 + ldi_check.php3 | 9 +++++++++ 2 files changed, 10 insertions(+) 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'); }