Browse Source

Fixed a bug when exporting without selecting a database

Zemistr 10 years ago
parent
commit
8fc70327fb
1 changed files with 2 additions and 8 deletions
  1. 2 8
      plugins/dump-php.php

+ 2 - 8
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();