From 46473792e77f6c8d553561049c5b72d52028b834 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 4 Feb 2003 15:25:15 +0000 Subject: [PATCH] logic fixed --- ldi_check.php3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ldi_check.php3 b/ldi_check.php3 index cb687bf53..06727965d 100755 --- a/ldi_check.php3 +++ b/ldi_check.php3 @@ -81,7 +81,10 @@ if (isset($btnLDI) && ($textfile != 'none')) { $tmp_query = "SHOW VARIABLES LIKE 'local\_infile'"; $result = PMA_mysql_query($tmp_query); if ($result != FALSE && mysql_num_rows($result) > 0) { - $query .= ' LOCAL'; + $tmp = PMA_mysql_fetch_row($result); + if ($tmp[1] == 'ON') { + $query .= ' LOCAL'; + } } mysql_free_result($result); }