From e3be56f88d514bba3529da4612d265df72da458c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 24 Feb 2002 19:10:33 +0000 Subject: [PATCH] fixed warnings and a parse error --- ldi_check.php3 | 2 +- ldi_table.php3 | 1 + sql.php3 | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ldi_check.php3 b/ldi_check.php3 index 97c2c9682..30dc24e7c 100755 --- a/ldi_check.php3 +++ b/ldi_check.php3 @@ -31,7 +31,7 @@ if (isset($btnLDI) && ($textfile != 'none')) { // Kanji encoding convert appended by Y.Kawada if (function_exists('PMA_kanji_file_conv')) { - $textfile = PMA_kanji_file_conv($textfile, $knjenc, $xkana); + $textfile = PMA_kanji_file_conv($textfile, $knjenc, isset($xkana) ? $xkana : ''); } // Formats the data posted to this script $textfile = PMA_sqlAddslashes($textfile); diff --git a/ldi_table.php3 b/ldi_table.php3 index 8454f8ad5..bf00ab582 100755 --- a/ldi_table.php3 +++ b/ldi_table.php3 @@ -66,6 +66,7 @@ if (function_exists('PMA_set_enc_form')) { . PMA_set_enc_form(' ') . ' ' . "\n" . ' ' . "\n"; +} // end if ?> diff --git a/sql.php3 b/sql.php3 index 1d3f770ab..2941ad97e 100755 --- a/sql.php3 +++ b/sql.php3 @@ -265,7 +265,8 @@ else { } // tmpfile remove after convert encoding appended by Y.Kawada - if (function_exists('PMA_kanji_file_conv') && file_exists($textfile)) { + if (function_exists('PMA_kanji_file_conv') + && (isset($textfile) && file_exists($textfile))) { unlink($textfile); }