aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-02-16 20:37:12 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-02-16 20:37:12 +0000
commitec9a091669e37b799c0fa66f81ccca1ca434afdb (patch)
treea1efe168d787a4f3fcc05d388147f647f35b9297
parent40441562861395f9efcc292428cefb2fa8241838 (diff)
downloadforums-ec9a091669e37b799c0fa66f81ccca1ca434afdb.tar
forums-ec9a091669e37b799c0fa66f81ccca1ca434afdb.tar.gz
forums-ec9a091669e37b799c0fa66f81ccca1ca434afdb.tar.bz2
forums-ec9a091669e37b799c0fa66f81ccca1ca434afdb.tar.xz
forums-ec9a091669e37b799c0fa66f81ccca1ca434afdb.zip
- some stupid bugs
git-svn-id: file:///svn/phpbb/trunk@6994 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/acp/acp_database.php7
-rw-r--r--phpBB/language/en/acp/database.php1
2 files changed, 7 insertions, 1 deletions
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