From ec9a091669e37b799c0fa66f81ccca1ca434afdb Mon Sep 17 00:00:00 2001 From: David M Date: Fri, 16 Feb 2007 20:37:12 +0000 Subject: [PATCH] - some stupid bugs git-svn-id: file:///svn/phpbb/trunk@6994 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_database.php | 7 ++++++- phpBB/language/en/acp/database.php | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php index e3da57fdfb..ed1dab4fd8 100644 --- a/phpBB/includes/acp/acp_database.php +++ b/phpBB/includes/acp/acp_database.php @@ -46,6 +46,11 @@ class acp_database $format = request_var('method', ''); $where = request_var('where', ''); + if (!sizeof($table)) + { + trigger_error($user->lang['TABLE_SELECT_ERROR'] . adm_back_link($this->u_action)); + } + $store = $download = $structure = $schema_data = false; if ($where == 'store_and_download' || $where == 'store') @@ -144,7 +149,7 @@ class acp_database } } - $extractor->write_end($table_name); + $extractor->write_end(); if ($download == true) { diff --git a/phpBB/language/en/acp/database.php b/phpBB/language/en/acp/database.php index 07605cc4cb..a59ebc416f 100644 --- a/phpBB/language/en/acp/database.php +++ b/phpBB/language/en/acp/database.php @@ -62,6 +62,7 @@ $lang = array_merge($lang, array( 'STRUCTURE_ONLY' => 'Structure only', 'TABLE_SELECT' => 'Table select', + 'TABLE_SELECT_ERROR'=> 'You must select at least one table.', )); ?> \ No newline at end of file