mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[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:
@@ -57,7 +57,7 @@ class acp_database
|
|||||||
{
|
{
|
||||||
case 'download':
|
case 'download':
|
||||||
$type = request_var('type', '');
|
$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', '');
|
$format = request_var('method', '');
|
||||||
$where = request_var('where', '');
|
$where = request_var('where', '');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user