]> git.joonet.de Git - adminer.git/commitdiff
Fixed a bug when exporting without selecting a database
authorZemistr <zemistr@gmail.com>
Wed, 8 Oct 2014 09:00:26 +0000 (11:00 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 12 Oct 2014 19:10:56 +0000 (12:10 -0700)
plugins/dump-php.php

index 56e986b0e3db06cc7518638e802395cbabb6eab2..fde5c0f9c345e388c5cca8271fbeee6ccebb7694 100644 (file)
@@ -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();