summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/system_advanced.php3
-rwxr-xr-xusr/local/www/system_firmware_check.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index d9a5b40..dc0a76d 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -124,7 +124,8 @@ if ($_POST) {
if($_POST['disablefirmwarecheck'] == "yes")
$config['system']['disablefirmwarecheck'] = true;
else
-
+ unset($config['system']['disablefirmwarecheck']);
+
if ($_POST['enableserial'] == "yes")
$config['system']['enableserial'] = true;
else
diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php
index ffaf6e8..e857e35 100755
--- a/usr/local/www/system_firmware_check.php
+++ b/usr/local/www/system_firmware_check.php
@@ -31,7 +31,7 @@
require_once("guiconfig.inc");
require_once("xmlrpc.inc");
-if($config['system']['disablefirmwarecheck'])
+if(isset($config['system']['disablefirmwarecheck']))
Header("Location: system_firmware.php");
?>
OpenPOWER on IntegriCloud