From e31965860fb6088beb4ba2f0c20f7ccea08bb7db Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 4 Aug 2016 09:37:20 +0200 Subject: [PATCH] system: backup lint failed on OSX, but not FreeBSD, huh? --- src/www/diag_backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/www/diag_backup.php b/src/www/diag_backup.php index 93bc1ada3..8acb086be 100644 --- a/src/www/diag_backup.php +++ b/src/www/diag_backup.php @@ -312,7 +312,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { write_config(); convert_config(); } - if (!empty(pconfig['rebootafterrestore'])) { + if (!empty($pconfig['rebootafterrestore'])) { $do_reboot = true; } $savemsg = gettext("The configuration area has been restored."); @@ -323,7 +323,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { file_put_contents($filename, $data); $cnf = OPNsense\Core\Config::getInstance(); if ($cnf->restoreBackup($filename)) { - if (!empty(pconfig['rebootafterrestore'])) { + if (!empty($pconfig['rebootafterrestore'])) { $do_reboot = true; } $config = parse_config();