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:
@@ -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];
|
||||||
|
Reference in New Issue
Block a user