[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
This commit is contained in:
Andreas Fischer 2012-05-30 13:45:00 +02:00
parent 515c27270f
commit 9240ddbfa7

View file

@ -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', '');