fixed warnings

This commit is contained in:
Loïc Chapeaux
2002-02-24 19:17:02 +00:00
parent e3be56f88d
commit d7b17b392f
2 changed files with 5 additions and 5 deletions

View File

@@ -280,7 +280,7 @@ else if (empty($id_bookmark) && get_magic_quotes_gpc() == 1) {
if (@function_exists('PMA_kanji_str_conv')) { if (@function_exists('PMA_kanji_str_conv')) {
$sql_tmp = trim($sql_query); $sql_tmp = trim($sql_query);
PMA_change_enc_order(); PMA_change_enc_order();
$sql_query = PMA_kanji_str_conv($sql_tmp, $knjenc, $xkana); $sql_query = PMA_kanji_str_conv($sql_tmp, $knjenc, isset($xkana) ? $xkana : '');
PMA_change_enc_order(); PMA_change_enc_order();
} else { } else {
$sql_query = trim($sql_query); $sql_query = trim($sql_query);

View File

@@ -16,7 +16,7 @@ function PMA_myHandler($sql_insert)
// Kanji encoding convert feature appended by Y.Kawada (2001/2/21) // Kanji encoding convert feature appended by Y.Kawada (2001/2/21)
if (function_exists('PMA_kanji_str_conv')) { if (function_exists('PMA_kanji_str_conv')) {
$sql_insert = PMA_kanji_str_conv($sql_insert, $GLOBALS['knjenc'], $GLOBALS['xkana']); $sql_insert = PMA_kanji_str_conv($sql_insert, $GLOBALS['knjenc'], isset($GLOBALS['xkana']) ? $GLOBALS['xkana'] : '');
} }
// Defines the end of line delimiter to use // Defines the end of line delimiter to use
$eol_dlm = (isset($GLOBALS['extended_ins']) && ($GLOBALS['current_row'] < $GLOBALS['rows_cnt'])) $eol_dlm = (isset($GLOBALS['extended_ins']) && ($GLOBALS['current_row'] < $GLOBALS['rows_cnt']))
@@ -57,7 +57,7 @@ function PMA_myCsvHandler($sql_insert)
// Kanji encoding convert feature appended by Y.Kawada (2001/2/21) // Kanji encoding convert feature appended by Y.Kawada (2001/2/21)
if (function_exists('PMA_kanji_str_conv')) { if (function_exists('PMA_kanji_str_conv')) {
$sql_insert = PMA_kanji_str_conv($sql_insert, $GLOBALS['knjenc'], $GLOBALS['xkana']); $sql_insert = PMA_kanji_str_conv($sql_insert, $GLOBALS['knjenc'], isset($GLOBALS['xkana']) ? $GLOBALS['xkana'] : '');
} }
// Result has to be displayed on screen // Result has to be displayed on screen
if (empty($GLOBALS['asfile'])) { if (empty($GLOBALS['asfile'])) {
@@ -233,7 +233,7 @@ else {
. PMA_getTableDef($db, $table, $crlf, $err_url) . ';' . $crlf; . PMA_getTableDef($db, $table, $crlf, $err_url) . ';' . $crlf;
} }
if (function_exists('PMA_kanji_str_conv')) { // Y.Kawada if (function_exists('PMA_kanji_str_conv')) { // Y.Kawada
$dump_buffer = PMA_kanji_str_conv($dump_buffer, $knjenc, $xkana); $dump_buffer = PMA_kanji_str_conv($dump_buffer, $knjenc, isset($xkana) ? $xkana : '');
} }
// At least data // At least data
if (($what == 'data') || ($what == 'dataonly')) { if (($what == 'data') || ($what == 'dataonly')) {
@@ -241,7 +241,7 @@ else {
. '# ' . $strDumpingData . ' ' . $formatted_table_name . $crlf . '# ' . $strDumpingData . ' ' . $formatted_table_name . $crlf
. '#' . $crlf .$crlf; . '#' . $crlf .$crlf;
if (function_exists('PMA_kanji_str_conv')) { // Y.Kawada if (function_exists('PMA_kanji_str_conv')) { // Y.Kawada
$dump_buffer .= PMA_kanji_str_conv($tcmt, $knjenc, $xkana); $dump_buffer .= PMA_kanji_str_conv($tcmt, $knjenc, isset($xkana) ? $xkana : '');
} else { } else {
$dump_buffer .= $tcmt; $dump_buffer .= $tcmt;
} }