mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correct a PHP error when saving on system_advanced_admin.php. Fixes #8606
This commit is contained in:
parent
f031765bb0
commit
8038c4e807
@ -251,9 +251,9 @@ if ($_POST) {
|
||||
$sshd_keyonly = $config['system']['sshd']['sshdkeyonly'];
|
||||
if ($_POST['sshdkeyonly'] == "enabled") {
|
||||
$config['system']['sshd']['sshdkeyonly'] = "enabled";
|
||||
} else if ($_POST['sshdkeyonly'] == "both") {
|
||||
} elseif ($_POST['sshdkeyonly'] == "both") {
|
||||
$config['system']['sshd']['sshdkeyonly'] = "both";
|
||||
} else {
|
||||
} elseif (is_array($config['system']['sshd']) && isset($config['system']['sshd']['sshdkeyonly'])) {
|
||||
unset($config['system']['sshd']['sshdkeyonly']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user