Skip to content

Commit

Permalink
Update db_backup.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSheer committed Aug 8, 2019
1 parent 0612ff0 commit c6efdc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/admin/db_backup.php
Expand Up @@ -33,7 +33,7 @@ function display_options()

$sql_layer = $db->get_sql_layer();

if($format === $lang['NO'])
if ($format === $lang['NO'])
{
$format = 'text';
}
Expand Down Expand Up @@ -130,11 +130,12 @@ function display_options()
}
$db->sql_freeresult($result);

$time = time();
if ($submit && !empty($tables))
{
$filename = 'back_' . $user->format_date(time(), 'Y_m_d_H_i_s');
$filename = 'backup_' . $time . '_' . unique_id();

if($format == 'screen')
if ($format == 'screen')
{
$template->assign_vars(array(
'DUMP' => true,
Expand All @@ -144,7 +145,6 @@ function display_options()
}
else
{
$time = time();
if ($sql_layer == 'mysqli' || $sql_layer == 'mysql4' || $sql_layer == 'mysql')
{
$extractor = new mysql_dumper_extractor($format, $filename, $time, $download, $store);
Expand Down

0 comments on commit c6efdc2

Please sign in to comment.