Print CSV header only in CSV
This commit is contained in:
parent
e908155196
commit
772f71a780
|
@ -45,7 +45,7 @@ if ($_POST && !$error) {
|
|||
if ($_POST["export"]) {
|
||||
$adminer->dumpHeaders($TABLE);
|
||||
$adminer->dumpTable($TABLE, "");
|
||||
if ($_POST["format"] != "sql") { // Editor doesn't send format
|
||||
if (ereg("csv", $_POST["format"])) {
|
||||
$row = array_keys($fields);
|
||||
if ($select) {
|
||||
$row = array();
|
||||
|
|
Loading…
Reference in a new issue