1
0
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:
Jakub Vrana
2010-10-29 17:51:52 +02:00
parent e908155196
commit 772f71a780

View File

@@ -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();