From c67557c82a386b1a97955fee53260c6831559786 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 15 Jun 2009 11:12:09 +0000 Subject: [PATCH] Always use columns list in export git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@699 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/export.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/export.inc.php b/adminer/include/export.inc.php index 915d4dc9..05c39346 100644 --- a/adminer/include/export.inc.php +++ b/adminer/include/export.inc.php @@ -129,7 +129,7 @@ function dump_data($table, $style, $select = "") { if ($_POST["format"] == "csv") { dump_csv($row); } else { - $insert = "INSERT INTO " . idf_escape($table) . ($select ? " (" . implode(", ", array_map('idf_escape', array_keys($row))) . ")" : "") . " VALUES"; + $insert = "INSERT INTO " . idf_escape($table) . " (" . implode(", ", array_map('idf_escape', array_keys($row))) . ") VALUES"; $row2 = array(); foreach ($row as $key => $val) { $row2[$key] = (isset($val) ? "'" . $dbh->escape_string($val) . "'" : "NULL");