mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Print CSV header only in CSV
This commit is contained in:
@@ -45,7 +45,7 @@ if ($_POST && !$error) {
|
|||||||
if ($_POST["export"]) {
|
if ($_POST["export"]) {
|
||||||
$adminer->dumpHeaders($TABLE);
|
$adminer->dumpHeaders($TABLE);
|
||||||
$adminer->dumpTable($TABLE, "");
|
$adminer->dumpTable($TABLE, "");
|
||||||
if ($_POST["format"] != "sql") { // Editor doesn't send format
|
if (ereg("csv", $_POST["format"])) {
|
||||||
$row = array_keys($fields);
|
$row = array_keys($fields);
|
||||||
if ($select) {
|
if ($select) {
|
||||||
$row = array();
|
$row = array();
|
||||||
|
Reference in New Issue
Block a user