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