From: Zemistr Date: Wed, 8 Oct 2014 09:00:26 +0000 (+0200) Subject: Fixed a bug when exporting without selecting a database X-Git-Tag: v4.2.0~25 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=8fc70327fb0b51f71634e2c28d287571ab513964;p=adminer.git Fixed a bug when exporting without selecting a database --- diff --git a/plugins/dump-php.php b/plugins/dump-php.php index 56e986b0..fde5c0f9 100644 --- a/plugins/dump-php.php +++ b/plugins/dump-php.php @@ -20,8 +20,9 @@ class AdminerDumpPhp { } } - function dumpDatabase() { + function dumpTable($table) { if ($_POST['format'] == 'php') { + $this->output[$table] = array(); if (!$this->shutdown_callback) { $this->shutdown_callback = true; 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) { if ($_POST['format'] == 'php') { $connection = connection();