mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
system: fix previous, access before define
This commit is contained in:
parent
cab8b1cf41
commit
3972bedbdf
@ -38,6 +38,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$pconfig['backupcount'] = 60;
|
||||
}
|
||||
|
||||
$cnf = OPNsense\Core\Config::getInstance();
|
||||
$confvers = $cnf->getBackups(true);
|
||||
|
||||
if (!empty($_GET['getcfg'])) {
|
||||
foreach ($confvers as $filename => $revision) {
|
||||
if ($revision['time'] == $_GET['getcfg']) {
|
||||
@ -54,8 +57,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
}
|
||||
}
|
||||
|
||||
$cnf = OPNsense\Core\Config::getInstance();
|
||||
$confvers = $cnf->getBackups(true);
|
||||
$oldfile = '';
|
||||
$newfile = '';
|
||||
$diff = '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user