mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Print CSV header only in CSV
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user