mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
[ticket/10239] Correct undefined variable error.
PHPBB3-10239
This commit is contained in:
parent
a1febdd429
commit
810016ce94
@ -221,6 +221,7 @@ class acp_database
|
||||
case 'submit':
|
||||
$delete = request_var('delete', '');
|
||||
$file = request_var('file', '');
|
||||
$download = request_var('download', '');
|
||||
|
||||
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))
|
||||
{
|
||||
$download = request_var('download', '');
|
||||
|
||||
if ($download)
|
||||
{
|
||||
$name = $matches[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user