Unify dumpTable declarations (bug #707)

This commit is contained in:
Jakub Vrana 2019-11-11 12:15:32 +01:00
parent a4e997fe60
commit 08c132cbea
5 changed files with 5 additions and 5 deletions

View file

@ -537,7 +537,7 @@ qsl('div').onclick = whisperClick;", "")
function dumpDatabase($db) {
}
function dumpTable() {
function dumpTable($table, $style, $is_view = 0) {
echo "\xef\xbb\xbf"; // UTF-8 byte order mark
}

View file

@ -67,7 +67,7 @@ SELECT @adminer_alter;
}
}
function dumpTable($table, $style, $is_view = false) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST["format"] == "sql_alter") {
$create = create_sql($table, $_POST["auto_increment"], $style);
if ($is_view) {

View file

@ -14,7 +14,7 @@ class AdminerDumpJson {
return array('json' => 'JSON');
}
function dumpTable($table, $style, $is_view = false) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST["format"] == "json") {
return true;
}

View file

@ -20,7 +20,7 @@ class AdminerDumpPhp {
}
}
function dumpTable($table) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST['format'] == 'php') {
$this->output[$table] = array();
if (!$this->shutdown_callback) {

View file

@ -14,7 +14,7 @@ class AdminerDumpXml {
return array('xml' => 'XML');
}
function dumpTable($table, $style, $is_view = false) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST["format"] == "xml") {
return true;
}