1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/10239] Correct undefined variable error.

PHPBB3-10239
This commit is contained in:
Chris Smith
2011-11-18 21:29:02 +00:00
parent a1febdd429
commit 810016ce94

View File

@@ -221,6 +221,7 @@ class acp_database
case 'submit': case 'submit':
$delete = request_var('delete', ''); $delete = request_var('delete', '');
$file = request_var('file', ''); $file = request_var('file', '');
$download = request_var('download', '');
if (!preg_match('#^backup_\d{10,}_[a-z\d]{16}\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches)) if (!preg_match('#^backup_\d{10,}_[a-z\d]{16}\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches))
{ {
@@ -249,8 +250,6 @@ class acp_database
} }
else if ($download || confirm_box(true)) else if ($download || confirm_box(true))
{ {
$download = request_var('download', '');
if ($download) if ($download)
{ {
$name = $matches[0]; $name = $matches[0];