]> git.joonet.de Git - adminer.git/commitdiff
Unify dumpTable declarations (bug #707)
authorJakub Vrana <jakub@vrana.cz>
Mon, 11 Nov 2019 11:15:32 +0000 (12:15 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 11 Nov 2019 11:27:53 +0000 (12:27 +0100)
editor/include/adminer.inc.php
plugins/dump-alter.php
plugins/dump-json.php
plugins/dump-php.php
plugins/dump-xml.php

index e66d0e9f4dd1daee6837c940128a31a5dc390e01..16bb888a2fe567a963fbc69e44d2ce6b63904d74 100644 (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
        }
 
index a4c80f2e07c6a7ad32009040ea8881d98843641c..8bfa466d14ad736e3c949fc0c293e2a6626feceb 100644 (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) {
index 8d865efbfdcddfcfb3c8c1bc07f97d2edebb0601..8c49ad75c25baa0bfbf048d9cf96e83aaced9af4 100644 (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;
                }
index 7ff22663a0e47c18a45b0402bcc06506fce05cc4..1c13fabf093951e96e3f3fc1f0d29d4d2bdd4b2a 100644 (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) {
index 037eb44570effaa0fba4e9fdf1f11b12ed477c40..580e9979b27cb87205db7909fb98fa713b52e1fb 100644 (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;
                }