mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Fixed a bug when exporting without selecting a database
This commit is contained in:
@@ -20,8 +20,9 @@ class AdminerDumpPhp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpDatabase() {
|
function dumpTable($table) {
|
||||||
if ($_POST['format'] == 'php') {
|
if ($_POST['format'] == 'php') {
|
||||||
|
$this->output[$table] = array();
|
||||||
if (!$this->shutdown_callback) {
|
if (!$this->shutdown_callback) {
|
||||||
$this->shutdown_callback = true;
|
$this->shutdown_callback = true;
|
||||||
register_shutdown_function(array($this, '_export'));
|
register_shutdown_function(array($this, '_export'));
|
||||||
@@ -30,13 +31,6 @@ class AdminerDumpPhp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpTable($table) {
|
|
||||||
if ($_POST['format'] == 'php') {
|
|
||||||
$this->output[$table] = array();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function dumpData($table, $style, $query) {
|
function dumpData($table, $style, $query) {
|
||||||
if ($_POST['format'] == 'php') {
|
if ($_POST['format'] == 'php') {
|
||||||
$connection = connection();
|
$connection = connection();
|
||||||
|
Reference in New Issue
Block a user