diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-05-30 13:45:00 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-05-30 13:45:00 +0200 |
commit | 9240ddbfa7cc4deb2076dcb989e6bfb318652e47 (patch) | |
tree | 441d3fef7ae96097adc55004cbea14825d594624 | |
parent | 515c27270fe04b5e2f69a0cedc5007ef889fdf77 (diff) | |
download | forums-9240ddbfa7cc4deb2076dcb989e6bfb318652e47.tar forums-9240ddbfa7cc4deb2076dcb989e6bfb318652e47.tar.gz forums-9240ddbfa7cc4deb2076dcb989e6bfb318652e47.tar.bz2 forums-9240ddbfa7cc4deb2076dcb989e6bfb318652e47.tar.xz forums-9240ddbfa7cc4deb2076dcb989e6bfb318652e47.zip |
[ticket/10611] Filter out not existing database tables when making a backup.
Using $this->db_tools->sql_list_tables() as the first argument gives us table
names as array keys as a by-product which might be useful at some point.
PHPBB3-10611
-rw-r--r-- | phpBB/includes/acp/acp_database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php index 885760f859..758cd10434 100644 --- a/phpBB/includes/acp/acp_database.php +++ b/phpBB/includes/acp/acp_database.php @@ -57,7 +57,7 @@ class acp_database { case 'download': $type = request_var('type', ''); - $table = request_var('table', array('')); + $table = array_intersect($this->db_tools->sql_list_tables(), request_var('table', array(''))); $format = request_var('method', ''); $where = request_var('where', ''); |