]> git.joonet.de Git - adminer.git/commitdiff
Fix undefined variable in SQL export
authorJakub Vrana <jakub@vrana.cz>
Fri, 21 Feb 2025 20:35:25 +0000 (21:35 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 21 Feb 2025 20:35:25 +0000 (21:35 +0100)
adminer/include/adminer.inc.php

index 72634632e37904b531d2aa2d5416aeb1bfb05ebb..81947a7a100b6b620fbe37bbb2e3c25465f7e958 100644 (file)
@@ -817,8 +817,9 @@ class Adminer {
        */
        function dumpData($table, $style, $query) {
                global $connection, $jush;
-               $max_packet = ($jush == "sqlite" ? 0 : 1048576); // default, minimum is 1024
                if ($style) {
+                       $max_packet = ($jush == "sqlite" ? 0 : 1048576); // default, minimum is 1024
+                       $fields = array();
                        if ($_POST["format"] == "sql") {
                                if ($style == "TRUNCATE+INSERT") {
                                        echo truncate_sql($table) . ";\n";