aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-05-30 13:45:00 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-05-30 13:45:00 +0200
commit9240ddbfa7cc4deb2076dcb989e6bfb318652e47 (patch)
tree441d3fef7ae96097adc55004cbea14825d594624 /phpBB/includes/acp
parent515c27270fe04b5e2f69a0cedc5007ef889fdf77 (diff)
downloadforums-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
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_database.php2
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', '');