mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Fix undefined variable in SQL export
This commit is contained in:
@@ -817,8 +817,9 @@ class Adminer {
|
|||||||
*/
|
*/
|
||||||
function dumpData($table, $style, $query) {
|
function dumpData($table, $style, $query) {
|
||||||
global $connection, $jush;
|
global $connection, $jush;
|
||||||
$max_packet = ($jush == "sqlite" ? 0 : 1048576); // default, minimum is 1024
|
|
||||||
if ($style) {
|
if ($style) {
|
||||||
|
$max_packet = ($jush == "sqlite" ? 0 : 1048576); // default, minimum is 1024
|
||||||
|
$fields = array();
|
||||||
if ($_POST["format"] == "sql") {
|
if ($_POST["format"] == "sql") {
|
||||||
if ($style == "TRUNCATE+INSERT") {
|
if ($style == "TRUNCATE+INSERT") {
|
||||||
echo truncate_sql($table) . ";\n";
|
echo truncate_sql($table) . ";\n";
|
||||||
|
Reference in New Issue
Block a user